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