Class Quintet<A,​B,​C,​D,​E>

  • Type Parameters:
    A - Type of the first element
    B - Type of the second element
    C - Type of the third element
    D - Type of the fourth element
    E - Type of the fifth element

    @ThreadSafe
    public class Quintet<A,​B,​C,​D,​E>
    extends java.lang.Object
    Convenience class for returning multiple objects from methods.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A a  
      private B b  
      private C c  
      private D d  
      private E e  
    • Constructor Summary

      Constructors 
      Constructor Description
      Quintet​(A a, B b, C c, D d, E e)
      Create a quintet and store five objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      A getA()
      Returns the first stored object.
      B getB()
      Returns the second stored object.
      C getC()
      Returns the third stored object.
      D getD()
      Returns the fourth stored object.
      E getE()
      Returns the fifth stored object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • a

        private final A a
      • b

        private final B b
      • c

        private final C c
      • d

        private final D d
      • e

        private final E e
    • Constructor Detail

      • Quintet

        public Quintet​(A a,
                       B b,
                       C c,
                       D d,
                       E e)
        Create a quintet and store five objects.
        Parameters:
        a - the first object to store
        b - the second object to store
        c - the third object to store
        d - the fourth object to store
        e - the fifth object to store
    • Method Detail

      • getA

        public final A getA()
        Returns the first stored object.
        Returns:
        first object stored
      • getB

        public final B getB()
        Returns the second stored object.
        Returns:
        second object stored
      • getC

        public final C getC()
        Returns the third stored object.
        Returns:
        third object stored
      • getD

        public final D getD()
        Returns the fourth stored object.
        Returns:
        fourth object stored
      • getE

        public final E getE()
        Returns the fifth stored object.
        Returns:
        fifth object stored