Package openGql.grammar
Class TypedGraphTypeReference
- java.lang.Object
-
- openGql.grammar.TypedGraphTypeReference
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypedGraphTypeReference>
public class TypedGraphTypeReference extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypedGraphTypeReference>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description GraphTypeReferencereferencestatic NameREFERENCEName of theopenGql.grammar.TypedGraphTypeReference.referencefield.static NameTYPE_Name of theopenGql.grammar.TypedGraphTypeReferencetype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.TypedGraphTypeReference.typedfield.
-
Constructor Summary
Constructors Constructor Description TypedGraphTypeReference(Optional<java.lang.Void> typed, GraphTypeReference reference)Constructs an immutableTypedGraphTypeReference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TypedGraphTypeReference other)booleanequals(java.lang.Object other)inthashCode()TypedGraphTypeReferencewithReference(GraphTypeReference reference)Returns a copy of thisTypedGraphTypeReferencewithreferencereplaced.TypedGraphTypeReferencewithTyped(Optional<java.lang.Void> typed)Returns a copy of thisTypedGraphTypeReferencewithtypedreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.TypedGraphTypeReferencetype.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.TypedGraphTypeReference.typedfield.
-
REFERENCE
public static final Name REFERENCE
Name of theopenGql.grammar.TypedGraphTypeReference.referencefield.
-
typed
public final Optional<java.lang.Void> typed
-
reference
public final GraphTypeReference reference
-
-
Constructor Detail
-
TypedGraphTypeReference
public TypedGraphTypeReference(Optional<java.lang.Void> typed, GraphTypeReference reference)
Constructs an immutableTypedGraphTypeReference.
-
-
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(TypedGraphTypeReference other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypedGraphTypeReference>
-
withTyped
public TypedGraphTypeReference withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisTypedGraphTypeReferencewithtypedreplaced.
-
withReference
public TypedGraphTypeReference withReference(GraphTypeReference reference)
Returns a copy of thisTypedGraphTypeReferencewithreferencereplaced.
-
-