Package openGql.grammar
Class EdgeTypePattern
- java.lang.Object
-
- openGql.grammar.EdgeTypePattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgeTypePattern>
public class EdgeTypePattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EdgeTypePattern>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameKIND_AND_SYNONYMName of theopenGql.grammar.EdgeTypePattern.kindAndSynonymfield.Optional<EdgeKindAndSynonym>kindAndSynonymstatic NamePATTERN_TYPEName of theopenGql.grammar.EdgeTypePattern.patternTypefield.EdgeTypePatternTypepatternTypestatic NameTYPE_Name of theopenGql.grammar.EdgeTypePatterntype.
-
Constructor Summary
Constructors Constructor Description EdgeTypePattern(Optional<EdgeKindAndSynonym> kindAndSynonym, EdgeTypePatternType patternType)Constructs an immutableEdgeTypePattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EdgeTypePattern other)booleanequals(java.lang.Object other)inthashCode()EdgeTypePatternwithKindAndSynonym(Optional<EdgeKindAndSynonym> kindAndSynonym)Returns a copy of thisEdgeTypePatternwithkindAndSynonymreplaced.EdgeTypePatternwithPatternType(EdgeTypePatternType patternType)Returns a copy of thisEdgeTypePatternwithpatternTypereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.EdgeTypePatterntype.
-
KIND_AND_SYNONYM
public static final Name KIND_AND_SYNONYM
Name of theopenGql.grammar.EdgeTypePattern.kindAndSynonymfield.
-
PATTERN_TYPE
public static final Name PATTERN_TYPE
Name of theopenGql.grammar.EdgeTypePattern.patternTypefield.
-
kindAndSynonym
public final Optional<EdgeKindAndSynonym> kindAndSynonym
-
patternType
public final EdgeTypePatternType patternType
-
-
Constructor Detail
-
EdgeTypePattern
public EdgeTypePattern(Optional<EdgeKindAndSynonym> kindAndSynonym, EdgeTypePatternType patternType)
Constructs an immutableEdgeTypePattern.
-
-
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(EdgeTypePattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgeTypePattern>
-
withKindAndSynonym
public EdgeTypePattern withKindAndSynonym(Optional<EdgeKindAndSynonym> kindAndSynonym)
Returns a copy of thisEdgeTypePatternwithkindAndSynonymreplaced.
-
withPatternType
public EdgeTypePattern withPatternType(EdgeTypePatternType patternType)
Returns a copy of thisEdgeTypePatternwithpatternTypereplaced.
-
-