Package hydra.cypher.openCypher
Class PatternWhere
- java.lang.Object
-
- hydra.cypher.openCypher.PatternWhere
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PatternWhere>
public class PatternWhere extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PatternWhere>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Patternpatternstatic NamePATTERNName of thehydra.cypher.openCypher.PatternWhere.patternfield.static NameTYPE_Name of thehydra.cypher.openCypher.PatternWheretype.Optional<Where>wherestatic NameWHEREName of thehydra.cypher.openCypher.PatternWhere.wherefield.
-
Constructor Summary
Constructors Constructor Description PatternWhere(Pattern pattern, Optional<Where> where)Constructs an immutablePatternWhere.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PatternWhere other)booleanequals(java.lang.Object other)inthashCode()PatternWherewithPattern(Pattern pattern)Returns a copy of thisPatternWherewithpatternreplaced.PatternWherewithWhere(Optional<Where> where)Returns a copy of thisPatternWherewithwherereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.cypher.openCypher.PatternWheretype.
-
PATTERN
public static final Name PATTERN
Name of thehydra.cypher.openCypher.PatternWhere.patternfield.
-
WHERE
public static final Name WHERE
Name of thehydra.cypher.openCypher.PatternWhere.wherefield.
-
pattern
public final Pattern pattern
-
-
Constructor Detail
-
PatternWhere
public PatternWhere(Pattern pattern, Optional<Where> where)
Constructs an immutablePatternWhere.
-
-
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(PatternWhere other)
- Specified by:
compareToin interfacejava.lang.Comparable<PatternWhere>
-
withPattern
public PatternWhere withPattern(Pattern pattern)
Returns a copy of thisPatternWherewithpatternreplaced.
-
withWhere
public PatternWhere withWhere(Optional<Where> where)
Returns a copy of thisPatternWherewithwherereplaced.
-
-