Package eu.bandm.tools.umod.runtime
Class CheckedCoPair_L<L,R>
java.lang.Object
eu.bandm.tools.umod.runtime.UncheckedCoPair<L,R>
eu.bandm.tools.umod.runtime.CheckedCoPair_L<L,R>
- Type Parameters:
L- the type of the left alternativesR- the type of the right alternatives
- All Implemented Interfaces:
CoPair<L,,R> CoPair_checkedLeft<L,,R> Serializable
- Direct Known Subclasses:
CheckedCoPair_LR
Implements "CoPair" operations and guarantees strictness of left variant.
- See Also:
-
Field Summary
Fields inherited from class eu.bandm.tools.umod.runtime.UncheckedCoPair
isLeft, left, right -
Constructor Summary
ConstructorsConstructorDescriptionCheckedCoPair_L(boolean b, R right) Create a copair of the "right" alternative.CheckedCoPair_L(CoPair<L, R> p) Create a copair with the same values as the prototype.CheckedCoPair_L(L left) Create a copair of the "left" alternative. -
Method Summary
Methods inherited from class eu.bandm.tools.umod.runtime.UncheckedCoPair
get_left, get_right, hashCode, isLeft, set_right, toString, xEquals
-
Constructor Details
-
CheckedCoPair_L
Create a copair of the "left" alternative.- Parameters:
left- the value stored in this copair.- Throws:
NullPointerException- if the argument is null.
-
CheckedCoPair_L
Create a copair of the "right" alternative.- Parameters:
b- a marker parameter which chooses the right alternative. Can have arbitrary value.right- the value stored in this copair.
-
CheckedCoPair_L
Create a copair with the same values as the prototype.- Parameters:
p- the prototype- Throws:
NullPointerException- if the argument realizes the left variant and has the null value.
-
-
Method Details
-
set_left
Description copied from interface:CoPairSet this instance to realizes the left variant and set its value. -
equals
- Overrides:
equalsin classUncheckedCoPair<L,R>
-