Package openGql.grammar
Class ParentAndGraphName
- java.lang.Object
-
- openGql.grammar.ParentAndGraphName
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ParentAndGraphName>
public class ParentAndGraphName extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ParentAndGraphName>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameGRAPH_NAMEName of theopenGql.grammar.ParentAndGraphName.graphNamefield.java.lang.StringgraphNamestatic NamePARENT_REFERENCEName of theopenGql.grammar.ParentAndGraphName.parentReferencefield.CatalogObjectParentReferenceparentReferencestatic NameTYPE_Name of theopenGql.grammar.ParentAndGraphNametype.
-
Constructor Summary
Constructors Constructor Description ParentAndGraphName(CatalogObjectParentReference parentReference, java.lang.String graphName)Constructs an immutableParentAndGraphName.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ParentAndGraphName other)booleanequals(java.lang.Object other)inthashCode()ParentAndGraphNamewithGraphName(java.lang.String graphName)Returns a copy of thisParentAndGraphNamewithgraphNamereplaced.ParentAndGraphNamewithParentReference(CatalogObjectParentReference parentReference)Returns a copy of thisParentAndGraphNamewithparentReferencereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ParentAndGraphNametype.
-
PARENT_REFERENCE
public static final Name PARENT_REFERENCE
Name of theopenGql.grammar.ParentAndGraphName.parentReferencefield.
-
GRAPH_NAME
public static final Name GRAPH_NAME
Name of theopenGql.grammar.ParentAndGraphName.graphNamefield.
-
parentReference
public final CatalogObjectParentReference parentReference
-
graphName
public final java.lang.String graphName
-
-
Constructor Detail
-
ParentAndGraphName
public ParentAndGraphName(CatalogObjectParentReference parentReference, java.lang.String graphName)
Constructs an immutableParentAndGraphName.
-
-
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(ParentAndGraphName other)
- Specified by:
compareToin interfacejava.lang.Comparable<ParentAndGraphName>
-
withParentReference
public ParentAndGraphName withParentReference(CatalogObjectParentReference parentReference)
Returns a copy of thisParentAndGraphNamewithparentReferencereplaced.
-
withGraphName
public ParentAndGraphName withGraphName(java.lang.String graphName)
Returns a copy of thisParentAndGraphNamewithgraphNamereplaced.
-
-