Class Quartet<A,B,C,D>

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

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

    Constructors
    Constructor
    Description
    Quartet(A a, B b, C c, D d)
    Create a quartet and store four objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    final A
    Returns the first stored object.
    final B
    Returns the second stored object.
    final C
    Returns the third stored object.
    final D
    Returns the fourth stored object.

    Methods inherited from class java.lang.Object

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

    • Quartet

      public Quartet(A a, B b, C c, D d)
      Create a quartet and store four 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
  • Method Details

    • 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