Package openGql.grammar
Class BytesType
- java.lang.Object
-
- openGql.grammar.BytesType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BytesType>
public class BytesType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<BytesType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameMAX_LENGTHName of theopenGql.grammar.BytesType.maxLengthfield.Optional<UnsignedInteger>maxLengthstatic NameMIN_LENGTHName of theopenGql.grammar.BytesType.minLengthfield.Optional<UnsignedInteger>minLengthstatic NameNOT_NULLName of theopenGql.grammar.BytesType.notNullfield.java.lang.BooleannotNullstatic NameTYPE_Name of theopenGql.grammar.BytesTypetype.
-
Constructor Summary
Constructors Constructor Description BytesType(Optional<UnsignedInteger> minLength, Optional<UnsignedInteger> maxLength, java.lang.Boolean notNull)Constructs an immutableBytesType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BytesType other)booleanequals(java.lang.Object other)inthashCode()BytesTypewithMaxLength(Optional<UnsignedInteger> maxLength)Returns a copy of thisBytesTypewithmaxLengthreplaced.BytesTypewithMinLength(Optional<UnsignedInteger> minLength)Returns a copy of thisBytesTypewithminLengthreplaced.BytesTypewithNotNull(java.lang.Boolean notNull)Returns a copy of thisBytesTypewithnotNullreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.BytesTypetype.
-
MIN_LENGTH
public static final Name MIN_LENGTH
Name of theopenGql.grammar.BytesType.minLengthfield.
-
MAX_LENGTH
public static final Name MAX_LENGTH
Name of theopenGql.grammar.BytesType.maxLengthfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.BytesType.notNullfield.
-
minLength
public final Optional<UnsignedInteger> minLength
-
maxLength
public final Optional<UnsignedInteger> maxLength
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
BytesType
public BytesType(Optional<UnsignedInteger> minLength, Optional<UnsignedInteger> maxLength, java.lang.Boolean notNull)
Constructs an immutableBytesType.
-
-
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(BytesType other)
- Specified by:
compareToin interfacejava.lang.Comparable<BytesType>
-
withMinLength
public BytesType withMinLength(Optional<UnsignedInteger> minLength)
Returns a copy of thisBytesTypewithminLengthreplaced.
-
withMaxLength
public BytesType withMaxLength(Optional<UnsignedInteger> maxLength)
Returns a copy of thisBytesTypewithmaxLengthreplaced.
-
-