Package openGql.grammar
Class VarcharType
- java.lang.Object
-
- openGql.grammar.VarcharType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VarcharType>
public class VarcharType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<VarcharType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameMAX_LENGTHName of theopenGql.grammar.VarcharType.maxLengthfield.Optional<UnsignedInteger>maxLengthstatic NameNOT_NULLName of theopenGql.grammar.VarcharType.notNullfield.java.lang.BooleannotNullstatic NameTYPE_Name of theopenGql.grammar.VarcharTypetype.
-
Constructor Summary
Constructors Constructor Description VarcharType(Optional<UnsignedInteger> maxLength, java.lang.Boolean notNull)Constructs an immutableVarcharType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VarcharType other)booleanequals(java.lang.Object other)inthashCode()VarcharTypewithMaxLength(Optional<UnsignedInteger> maxLength)Returns a copy of thisVarcharTypewithmaxLengthreplaced.VarcharTypewithNotNull(java.lang.Boolean notNull)Returns a copy of thisVarcharTypewithnotNullreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.VarcharTypetype.
-
MAX_LENGTH
public static final Name MAX_LENGTH
Name of theopenGql.grammar.VarcharType.maxLengthfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.VarcharType.notNullfield.
-
maxLength
public final Optional<UnsignedInteger> maxLength
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
VarcharType
public VarcharType(Optional<UnsignedInteger> maxLength, java.lang.Boolean notNull)
Constructs an immutableVarcharType.
-
-
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(VarcharType other)
- Specified by:
compareToin interfacejava.lang.Comparable<VarcharType>
-
withMaxLength
public VarcharType withMaxLength(Optional<UnsignedInteger> maxLength)
Returns a copy of thisVarcharTypewithmaxLengthreplaced.
-
withNotNull
public VarcharType withNotNull(java.lang.Boolean notNull)
Returns a copy of thisVarcharTypewithnotNullreplaced.
-
-