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

java.lang.Object
org.aoju.bus.core.lang.tuple.Quintet<A,B,C,D,E>
Type Parameters:
A - 第一个元素的类型
B - 第二个元素的类型
C - 第三个元素的类型
D - 第四个元素的类型
E - 第五个元素的类型

@ThreadSafe public class Quintet<A,B,C,D,E> extends Object
从方法返回多个对象的便利类
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Summary

    Constructors
    Constructor
    Description
    Quintet(A a, B b, C c, D d, E e)
    创建一个五重奏并存储五个对象
  • Method Summary

    Modifier and Type
    Method
    Description
    final A
    返回第一个存储的对象
    final B
    返回第二个存储对象
    final C
    返回第三个存储对象
    final D
    返回第四个存储对象
    final E
    返回第五个存储对象

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Quintet

      public Quintet(A a, B b, C c, D d, E e)
      创建一个五重奏并存储五个对象
      Parameters:
      a - 要存储的第一个对象
      b - 要存储的第二个对象
      c - 要存储的第三个对象
      d - 要存储的第四个对象
      e - 要存储的第五个对象
  • Method Details

    • getA

      public final A getA()
      返回第一个存储的对象
      Returns:
      第一个对象存储
    • getB

      public final B getB()
      返回第二个存储对象
      Returns:
      第二个对象存储
    • getC

      public final C getC()
      返回第三个存储对象
      Returns:
      第三个对象存储
    • getD

      public final D getD()
      返回第四个存储对象
      Returns:
      第四个对象存储
    • getE

      public final E getE()
      返回第五个存储对象
      Returns:
      第五个对象存储