Package openGql.grammar
Class BinaryType
- java.lang.Object
-
- openGql.grammar.BinaryType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryType>
public class BinaryType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<BinaryType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameFIXED_LENGTHName of theopenGql.grammar.BinaryType.fixedLengthfield.Optional<UnsignedInteger>fixedLengthstatic NameNOT_NULLName of theopenGql.grammar.BinaryType.notNullfield.java.lang.BooleannotNullstatic NameTYPE_Name of theopenGql.grammar.BinaryTypetype.
-
Constructor Summary
Constructors Constructor Description BinaryType(Optional<UnsignedInteger> fixedLength, java.lang.Boolean notNull)Constructs an immutableBinaryType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BinaryType other)booleanequals(java.lang.Object other)inthashCode()BinaryTypewithFixedLength(Optional<UnsignedInteger> fixedLength)Returns a copy of thisBinaryTypewithfixedLengthreplaced.BinaryTypewithNotNull(java.lang.Boolean notNull)Returns a copy of thisBinaryTypewithnotNullreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.BinaryTypetype.
-
FIXED_LENGTH
public static final Name FIXED_LENGTH
Name of theopenGql.grammar.BinaryType.fixedLengthfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.BinaryType.notNullfield.
-
fixedLength
public final Optional<UnsignedInteger> fixedLength
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
BinaryType
public BinaryType(Optional<UnsignedInteger> fixedLength, java.lang.Boolean notNull)
Constructs an immutableBinaryType.
-
-
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(BinaryType other)
- Specified by:
compareToin interfacejava.lang.Comparable<BinaryType>
-
withFixedLength
public BinaryType withFixedLength(Optional<UnsignedInteger> fixedLength)
Returns a copy of thisBinaryTypewithfixedLengthreplaced.
-
withNotNull
public BinaryType withNotNull(java.lang.Boolean notNull)
Returns a copy of thisBinaryTypewithnotNullreplaced.
-
-