Class LabelCondition
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.LabelCondition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LabelCondition>
public class LabelCondition extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<LabelCondition>
Conditions on node/edge labels: label(node(i)) = v- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathElementtargetstatic NameTARGETName of thecom.gdblab.pathAlgebra.expressions.LabelCondition.targetfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.LabelConditiontype.java.lang.Stringvaluestatic NameVALUEName of thecom.gdblab.pathAlgebra.expressions.LabelCondition.valuefield.
-
Constructor Summary
Constructors Constructor Description LabelCondition(PathElement target, java.lang.String value)Constructs an immutableLabelCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LabelCondition other)booleanequals(java.lang.Object other)inthashCode()LabelConditionwithTarget(PathElement target)Returns a copy of thisLabelConditionwithtargetreplaced.LabelConditionwithValue(java.lang.String value)Returns a copy of thisLabelConditionwithvaluereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.LabelConditiontype.
-
TARGET
public static final Name TARGET
Name of thecom.gdblab.pathAlgebra.expressions.LabelCondition.targetfield.
-
VALUE
public static final Name VALUE
Name of thecom.gdblab.pathAlgebra.expressions.LabelCondition.valuefield.
-
target
public final PathElement target
-
value
public final java.lang.String value
-
-
Constructor Detail
-
LabelCondition
public LabelCondition(PathElement target, java.lang.String value)
Constructs an immutableLabelCondition.
-
-
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(LabelCondition other)
- Specified by:
compareToin interfacejava.lang.Comparable<LabelCondition>
-
withTarget
public LabelCondition withTarget(PathElement target)
Returns a copy of thisLabelConditionwithtargetreplaced.
-
withValue
public LabelCondition withValue(java.lang.String value)
Returns a copy of thisLabelConditionwithvaluereplaced.
-
-