Package ch.njol.util

Class Pair<T1,T2>

java.lang.Object
ch.njol.util.Pair<T1,T2>
All Implemented Interfaces:
Serializable, Cloneable, Map.Entry<T1,T2>
Direct Known Subclasses:
NonNullPair

public class Pair<T1,T2> extends Object implements Map.Entry<T1,T2>, Cloneable, Serializable
See Also:
  • Field Details

    • first

      @Nullable protected T1 first
    • second

      @Nullable protected T2 second
  • Constructor Details

    • Pair

      public Pair()
    • Pair

      public Pair(@Nullable T1 first, @Nullable T2 second)
    • Pair

      public Pair(Map.Entry<T1,T2> e)
  • Method Details