Class OrCondition
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.OrCondition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OrCondition>
public class OrCondition extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<OrCondition>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description SelectionConditionleftstatic NameLEFTName of thecom.gdblab.pathAlgebra.expressions.OrCondition.leftfield.SelectionConditionrightstatic NameRIGHTName of thecom.gdblab.pathAlgebra.expressions.OrCondition.rightfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.OrConditiontype.
-
Constructor Summary
Constructors Constructor Description OrCondition(SelectionCondition left, SelectionCondition right)Constructs an immutableOrCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OrCondition other)booleanequals(java.lang.Object other)inthashCode()OrConditionwithLeft(SelectionCondition left)Returns a copy of thisOrConditionwithleftreplaced.OrConditionwithRight(SelectionCondition right)Returns a copy of thisOrConditionwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.OrConditiontype.
-
LEFT
public static final Name LEFT
Name of thecom.gdblab.pathAlgebra.expressions.OrCondition.leftfield.
-
RIGHT
public static final Name RIGHT
Name of thecom.gdblab.pathAlgebra.expressions.OrCondition.rightfield.
-
left
public final SelectionCondition left
-
right
public final SelectionCondition right
-
-
Constructor Detail
-
OrCondition
public OrCondition(SelectionCondition left, SelectionCondition right)
Constructs an immutableOrCondition.
-
-
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(OrCondition other)
- Specified by:
compareToin interfacejava.lang.Comparable<OrCondition>
-
withLeft
public OrCondition withLeft(SelectionCondition left)
Returns a copy of thisOrConditionwithleftreplaced.
-
withRight
public OrCondition withRight(SelectionCondition right)
Returns a copy of thisOrConditionwithrightreplaced.
-
-