Class Quad

  • All Implemented Interfaces:

    
    public final class Quad<A extends Object, B extends Object, C extends Object, D extends Object>
    
                        

    A quad of values.

    There is no meaning attached to values in this class, it can be used for any purpose. Quad exhibits value semantics, i.e. two quads are equal if all components are equal.

    Since:

    1.2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final A first
      private final B second
      private final C third
      private final D fourth
    • Constructor Summary

      Constructors 
      Constructor Description
      Quad(A first, B second, C third, D fourth)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final A getFirst()
      final B getSecond()
      final C getThird()
      final D getFourth()
      String toString() Returns string representation of the Quad including its values.
      final <T extends Any> List<T> toList(Quad<T, T, T, T> $self) Turns this quad into a List.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait