Package openGql.grammar
Class BindingTableType
- java.lang.Object
-
- openGql.grammar.BindingTableType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BindingTableType>
public class BindingTableType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<BindingTableType>
A GQL binding table type- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBindingTableType.BuilderA fluent builder forBindingTableType.
-
Field Summary
Fields Modifier and Type Field Description java.lang.Booleanbindingstatic NameBINDINGName of theopenGql.grammar.BindingTableType.bindingfield.static NameFIELD_TYPESName of theopenGql.grammar.BindingTableType.fieldTypesfield.Optional<java.util.List<FieldType>>fieldTypesstatic NameTYPE_Name of theopenGql.grammar.BindingTableTypetype.
-
Constructor Summary
Constructors Constructor Description BindingTableType(java.lang.Boolean binding, Optional<java.util.List<FieldType>> fieldTypes)Constructs an immutableBindingTableType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BindingTableType.Builderbuilder()Creates a new fluent builder forBindingTableType.intcompareTo(BindingTableType other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()BindingTableTypewithBinding(java.lang.Boolean binding)Returns a copy of thisBindingTableTypewithbindingreplaced.BindingTableTypewithFieldTypes(Optional<java.util.List<FieldType>> fieldTypes)Returns a copy of thisBindingTableTypewithfieldTypesreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.BindingTableTypetype.
-
BINDING
public static final Name BINDING
Name of theopenGql.grammar.BindingTableType.bindingfield.
-
FIELD_TYPES
public static final Name FIELD_TYPES
Name of theopenGql.grammar.BindingTableType.fieldTypesfield.
-
binding
public final java.lang.Boolean binding
-
-
Constructor Detail
-
BindingTableType
public BindingTableType(java.lang.Boolean binding, Optional<java.util.List<FieldType>> fieldTypes)Constructs an immutableBindingTableType.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(BindingTableType other)
- Specified by:
compareToin interfacejava.lang.Comparable<BindingTableType>
-
withBinding
public BindingTableType withBinding(java.lang.Boolean binding)
Returns a copy of thisBindingTableTypewithbindingreplaced.
-
withFieldTypes
public BindingTableType withFieldTypes(Optional<java.util.List<FieldType>> fieldTypes)
Returns a copy of thisBindingTableTypewithfieldTypesreplaced.
-
builder
public static BindingTableType.Builder builder()
Creates a new fluent builder forBindingTableType.
-
-