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