Package openGql.grammar
Class ListValueConstructorByEnumeration
- java.lang.Object
-
- openGql.grammar.ListValueConstructorByEnumeration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ListValueConstructorByEnumeration>
public class ListValueConstructorByEnumeration extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ListValueConstructorByEnumeration>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<java.util.List<ValueExpression>>elementsstatic NameELEMENTSName of theopenGql.grammar.ListValueConstructorByEnumeration.elementsfield.static NameLIST_VALUE_TYPE_NAMEName of theopenGql.grammar.ListValueConstructorByEnumeration.listValueTypeNamefield.Optional<ListValueTypeName>listValueTypeNamestatic NameTYPE_Name of theopenGql.grammar.ListValueConstructorByEnumerationtype.
-
Constructor Summary
Constructors Constructor Description ListValueConstructorByEnumeration(Optional<ListValueTypeName> listValueTypeName, Optional<java.util.List<ValueExpression>> elements)Constructs an immutableListValueConstructorByEnumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ListValueConstructorByEnumeration other)booleanequals(java.lang.Object other)inthashCode()ListValueConstructorByEnumerationwithElements(Optional<java.util.List<ValueExpression>> elements)Returns a copy of thisListValueConstructorByEnumerationwithelementsreplaced.ListValueConstructorByEnumerationwithListValueTypeName(Optional<ListValueTypeName> listValueTypeName)Returns a copy of thisListValueConstructorByEnumerationwithlistValueTypeNamereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ListValueConstructorByEnumerationtype.
-
LIST_VALUE_TYPE_NAME
public static final Name LIST_VALUE_TYPE_NAME
Name of theopenGql.grammar.ListValueConstructorByEnumeration.listValueTypeNamefield.
-
ELEMENTS
public static final Name ELEMENTS
Name of theopenGql.grammar.ListValueConstructorByEnumeration.elementsfield.
-
listValueTypeName
public final Optional<ListValueTypeName> listValueTypeName
-
elements
public final Optional<java.util.List<ValueExpression>> elements
-
-
Constructor Detail
-
ListValueConstructorByEnumeration
public ListValueConstructorByEnumeration(Optional<ListValueTypeName> listValueTypeName, Optional<java.util.List<ValueExpression>> elements)
Constructs an immutableListValueConstructorByEnumeration.
-
-
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(ListValueConstructorByEnumeration other)
- Specified by:
compareToin interfacejava.lang.Comparable<ListValueConstructorByEnumeration>
-
withListValueTypeName
public ListValueConstructorByEnumeration withListValueTypeName(Optional<ListValueTypeName> listValueTypeName)
Returns a copy of thisListValueConstructorByEnumerationwithlistValueTypeNamereplaced.
-
withElements
public ListValueConstructorByEnumeration withElements(Optional<java.util.List<ValueExpression>> elements)
Returns a copy of thisListValueConstructorByEnumerationwithelementsreplaced.
-
-