Package eu.bandm.tools.umod.runtime
Class UncheckedPair<L,R>
java.lang.Object
eu.bandm.tools.umod.runtime.UncheckedPair<L,R>
- Type Parameters:
L- the type of the left componentsR- the type of the right components
- All Implemented Interfaces:
Pair<L,,R> Serializable
- Direct Known Subclasses:
CheckedPair_L,CheckedPair_LR,CheckedPair_R
Implements "Pair" operations, but no strictness.
- See Also:
-
Field Summary
Fields inherited from interface eu.bandm.tools.umod.runtime.Pair
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionUncheckedPair(Pair<L, R> p) Create an instance with the values from the prototype.UncheckedPair(L left, R right) Create an instance with the given left and right values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <A,B> List <UncheckedPair<A, B>> fromIterables_unchecked(Iterable<A> left, Iterable<B> right, Class<A> lclass, Class<B> rclass) Create a list of instances which contains all possible combinations of the given values.get_left()Return the left component of this pair.Return the right component of this pair.inthashCode()voidChange the left value of this instance.voidChange the right value of this instance.toString()Deliver a new instance with the given left value and the right value of this instance.with_right(R r) Deliver a new instance with the given right value and the left value of this instance.
-
Constructor Details
-
UncheckedPair
Create an instance with the given left and right values.- Parameters:
left- the left valueright- the right value
-
UncheckedPair
Create an instance with the values from the prototype.- Parameters:
p- the prototype.
-
-
Method Details
-
toString
-
get_left
Description copied from interface:PairReturn the left component of this pair. -
get_right
Description copied from interface:PairReturn the right component of this pair. -
with_left
Description copied from interface:PairDeliver a new instance with the given left value and the right value of this instance. -
with_right
Description copied from interface:PairDeliver a new instance with the given right value and the left value of this instance.- Specified by:
with_rightin interfacePair<L,R> - Parameters:
r- the new right value.- Returns:
- a new instance.
-
set_left
Description copied from interface:PairChange the left value of this instance. -
set_right
Description copied from interface:PairChange the right value of this instance. -
fromIterables_unchecked
public static <A,B> List<UncheckedPair<A,B>> fromIterables_unchecked(Iterable<A> left, Iterable<B> right, Class<A> lclass, Class<B> rclass) Create a list of instances which contains all possible combinations of the given values.- Type Parameters:
A- the type of the left valuesB- the type of the left values- Parameters:
left- the left valuesright- the right valueslclass- the type of the left valuesrclass- the type of the left values- Returns:
- the list of all combinations
-
equals
-
hashCode
public int hashCode()
-