Package openGql.grammar
Class FieldType
- java.lang.Object
-
- openGql.grammar.FieldType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FieldType>
public class FieldType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<FieldType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameFIELD_NAMEName of theopenGql.grammar.FieldType.fieldNamefield.java.lang.StringfieldNamestatic NameTYPE_Name of theopenGql.grammar.FieldTypetype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.FieldType.typedfield.static NameVALUE_TYPEName of theopenGql.grammar.FieldType.valueTypefield.ValueTypevalueType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FieldType other)booleanequals(java.lang.Object other)inthashCode()FieldTypewithFieldName(java.lang.String fieldName)Returns a copy of thisFieldTypewithfieldNamereplaced.FieldTypewithTyped(Optional<java.lang.Void> typed)Returns a copy of thisFieldTypewithtypedreplaced.FieldTypewithValueType(ValueType valueType)Returns a copy of thisFieldTypewithvalueTypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.FieldTypetype.
-
FIELD_NAME
public static final Name FIELD_NAME
Name of theopenGql.grammar.FieldType.fieldNamefield.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.FieldType.typedfield.
-
VALUE_TYPE
public static final Name VALUE_TYPE
Name of theopenGql.grammar.FieldType.valueTypefield.
-
fieldName
public final java.lang.String fieldName
-
typed
public final Optional<java.lang.Void> typed
-
valueType
public final ValueType valueType
-
-
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(FieldType other)
- Specified by:
compareToin interfacejava.lang.Comparable<FieldType>
-
withFieldName
public FieldType withFieldName(java.lang.String fieldName)
Returns a copy of thisFieldTypewithfieldNamereplaced.
-
withTyped
public FieldType withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisFieldTypewithtypedreplaced.
-
-