Package openGql.grammar
Class TypedNestedGraphTypeSpecification
- java.lang.Object
-
- openGql.grammar.TypedNestedGraphTypeSpecification
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypedNestedGraphTypeSpecification>
public class TypedNestedGraphTypeSpecification extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypedNestedGraphTypeSpecification>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Booleangraphstatic NameGRAPHName of theopenGql.grammar.TypedNestedGraphTypeSpecification.graphfield.java.util.List<ElementTypeSpecification>specificationstatic NameSPECIFICATIONName of theopenGql.grammar.TypedNestedGraphTypeSpecification.specificationfield.static NameTYPE_Name of theopenGql.grammar.TypedNestedGraphTypeSpecificationtype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.TypedNestedGraphTypeSpecification.typedfield.
-
Constructor Summary
Constructors Constructor Description TypedNestedGraphTypeSpecification(Optional<java.lang.Void> typed, java.lang.Boolean graph, java.util.List<ElementTypeSpecification> specification)Constructs an immutableTypedNestedGraphTypeSpecification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TypedNestedGraphTypeSpecification other)booleanequals(java.lang.Object other)inthashCode()TypedNestedGraphTypeSpecificationwithGraph(java.lang.Boolean graph)Returns a copy of thisTypedNestedGraphTypeSpecificationwithgraphreplaced.TypedNestedGraphTypeSpecificationwithSpecification(java.util.List<ElementTypeSpecification> specification)Returns a copy of thisTypedNestedGraphTypeSpecificationwithspecificationreplaced.TypedNestedGraphTypeSpecificationwithTyped(Optional<java.lang.Void> typed)Returns a copy of thisTypedNestedGraphTypeSpecificationwithtypedreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.TypedNestedGraphTypeSpecificationtype.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.TypedNestedGraphTypeSpecification.typedfield.
-
GRAPH
public static final Name GRAPH
Name of theopenGql.grammar.TypedNestedGraphTypeSpecification.graphfield.
-
SPECIFICATION
public static final Name SPECIFICATION
Name of theopenGql.grammar.TypedNestedGraphTypeSpecification.specificationfield.
-
typed
public final Optional<java.lang.Void> typed
-
graph
public final java.lang.Boolean graph
-
specification
public final java.util.List<ElementTypeSpecification> specification
-
-
Constructor Detail
-
TypedNestedGraphTypeSpecification
public TypedNestedGraphTypeSpecification(Optional<java.lang.Void> typed, java.lang.Boolean graph, java.util.List<ElementTypeSpecification> specification)
Constructs an immutableTypedNestedGraphTypeSpecification.
-
-
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(TypedNestedGraphTypeSpecification other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypedNestedGraphTypeSpecification>
-
withTyped
public TypedNestedGraphTypeSpecification withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisTypedNestedGraphTypeSpecificationwithtypedreplaced.
-
withGraph
public TypedNestedGraphTypeSpecification withGraph(java.lang.Boolean graph)
Returns a copy of thisTypedNestedGraphTypeSpecificationwithgraphreplaced.
-
withSpecification
public TypedNestedGraphTypeSpecification withSpecification(java.util.List<ElementTypeSpecification> specification)
Returns a copy of thisTypedNestedGraphTypeSpecificationwithspecificationreplaced.
-
-