Package org.tensorics.core.commons.util
Class ValuePair<V>
- java.lang.Object
-
- org.tensorics.core.commons.util.AbstractPair<V>
-
- org.tensorics.core.commons.util.ValuePair<V>
-
- Type Parameters:
V
- the type of the values
public final class ValuePair<V> extends AbstractPair<V>
A pair of values, which can eg be used as intermediate results in calculations, where the two values are commonly used together. The content is named as 'left' and 'right' since very often, the two values might contain operands of binary operations.Both, the left and right value are not allowed to be
null
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> ValuePair<V>
fromLeftRight(V leftValue, V rightValue)
-
Methods inherited from class org.tensorics.core.commons.util.AbstractPair
equals, hashCode, left, right
-
-
-
-
Method Detail
-
fromLeftRight
public static <V> ValuePair<V> fromLeftRight(V leftValue, V rightValue)
-
-