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