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