Class 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 Detail

      • fromLeftRight

        public static <V> ValuePair<V> fromLeftRight​(V leftValue,
                                                     V rightValue)