Class Trio<T,E,M>

java.lang.Object
com.jackmeng.locale.Pair<T,E>
com.jackmeng.locale.Trio<T,E,M>

public class Trio<T,E,M> extends Pair<T,E>
A rarely used data structure class that holds 3 generic objects. It extends a pair class.
Since:
3.0
Author:
Jack Meng
See Also:
  • Field Details

    • third

      public M third
  • Constructor Details

    • Trio

      public Trio(T first, E second, M third)
      Constructs a trio with the given first and second elements and third elements
      Parameters:
      first - The first element which will be found in a Pair data structure
      second - The second element which will also be supered to the extended Pair class
      third - The third element which is held by this child class