Package openGql.grammar
Class TypedValueType
- java.lang.Object
-
- openGql.grammar.TypedValueType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypedValueType>
public class TypedValueType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypedValueType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameTYPE_Name of theopenGql.grammar.TypedValueTypetype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.TypedValueType.typedfield.static NameVALUE_TYPEName of theopenGql.grammar.TypedValueType.valueTypefield.ValueTypevalueType
-
Constructor Summary
Constructors Constructor Description TypedValueType(Optional<java.lang.Void> typed, ValueType valueType)Constructs an immutableTypedValueType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TypedValueType other)booleanequals(java.lang.Object other)inthashCode()TypedValueTypewithTyped(Optional<java.lang.Void> typed)Returns a copy of thisTypedValueTypewithtypedreplaced.TypedValueTypewithValueType(ValueType valueType)Returns a copy of thisTypedValueTypewithvalueTypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.TypedValueTypetype.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.TypedValueType.typedfield.
-
VALUE_TYPE
public static final Name VALUE_TYPE
Name of theopenGql.grammar.TypedValueType.valueTypefield.
-
typed
public final Optional<java.lang.Void> typed
-
valueType
public final ValueType valueType
-
-
Constructor Detail
-
TypedValueType
public TypedValueType(Optional<java.lang.Void> typed, ValueType valueType)
Constructs an immutableTypedValueType.
-
-
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(TypedValueType other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypedValueType>
-
withTyped
public TypedValueType withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisTypedValueTypewithtypedreplaced.
-
withValueType
public TypedValueType withValueType(ValueType valueType)
Returns a copy of thisTypedValueTypewithvalueTypereplaced.
-
-