Package openGql.grammar
Class PropertyType
- java.lang.Object
-
- openGql.grammar.PropertyType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PropertyType>
public class PropertyType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PropertyType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringnamestatic NameNAMEName of theopenGql.grammar.PropertyType.namefield.static NameTYPE_Name of theopenGql.grammar.PropertyTypetype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.PropertyType.typedfield.static NameVALUE_TYPEName of theopenGql.grammar.PropertyType.valueTypefield.ValueTypevalueType
-
Constructor Summary
Constructors Constructor Description PropertyType(java.lang.String name, Optional<java.lang.Void> typed, ValueType valueType)Constructs an immutablePropertyType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PropertyType other)booleanequals(java.lang.Object other)inthashCode()PropertyTypewithName(java.lang.String name)Returns a copy of thisPropertyTypewithnamereplaced.PropertyTypewithTyped(Optional<java.lang.Void> typed)Returns a copy of thisPropertyTypewithtypedreplaced.PropertyTypewithValueType(ValueType valueType)Returns a copy of thisPropertyTypewithvalueTypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.PropertyTypetype.
-
NAME
public static final Name NAME
Name of theopenGql.grammar.PropertyType.namefield.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.PropertyType.typedfield.
-
VALUE_TYPE
public static final Name VALUE_TYPE
Name of theopenGql.grammar.PropertyType.valueTypefield.
-
name
public final java.lang.String name
-
typed
public final Optional<java.lang.Void> typed
-
valueType
public final ValueType valueType
-
-
Constructor Detail
-
PropertyType
public PropertyType(java.lang.String name, Optional<java.lang.Void> typed, ValueType valueType)Constructs an immutablePropertyType.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(PropertyType other)
- Specified by:
compareToin interfacejava.lang.Comparable<PropertyType>
-
withName
public PropertyType withName(java.lang.String name)
Returns a copy of thisPropertyTypewithnamereplaced.
-
withTyped
public PropertyType withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisPropertyTypewithtypedreplaced.
-
withValueType
public PropertyType withValueType(ValueType valueType)
Returns a copy of thisPropertyTypewithvalueTypereplaced.
-
-