Class Pair<A,​B>

  • Type Parameters:
    A - Type of the first element.
    B - Type of the second element.
    All Implemented Interfaces:
    Serializable, Cloneable

    public class Pair<A,​B>
    extends Object
    implements Cloneable, Serializable
    Simple wrapper to store two different objects. Instances of this class are immutable.

    This class can be used safely with null values for a and b.

    Author:
    Torsten Hildebrandt
    See Also:
    Serialized Form