Package hydra.constraints
Class PatternImplication
- java.lang.Object
-
- hydra.constraints.PatternImplication
-
- All Implemented Interfaces:
java.io.Serializable
public class PatternImplication extends java.lang.Object implements java.io.SerializableA pattern which, if it matches in a given graph, implies that another pattern must also match. Query variables are shared between the two patterns.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PatternantecedentPatternconsequentstatic NameFIELD_NAME_ANTECEDENTstatic NameFIELD_NAME_CONSEQUENTstatic NameTYPE_NAME
-
Constructor Summary
Constructors Constructor Description PatternImplication(Pattern antecedent, Pattern consequent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()PatternImplicationwithAntecedent(Pattern antecedent)PatternImplicationwithConsequent(Pattern consequent)
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
withAntecedent
public PatternImplication withAntecedent(Pattern antecedent)
-
withConsequent
public PatternImplication withConsequent(Pattern consequent)
-
-