Module aeonics.core
Package aeonics.util

Class Tuples.Triple<A,​B,​C>

  • Type Parameters:
    A - the first value type
    B - the second value type
    C - the third value type
    Enclosing class:
    Tuples

    public static class Tuples.Triple<A,​B,​C>
    extends java.lang.Object
    A wrapper for three values
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A a
      The wrapped value
      B b
      The wrapped value
      C c
      The wrapped value
    • Constructor Summary

      Constructors 
      Constructor Description
      Triple​(A a, B b, C c)
      Creates a new three-value wrapper
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static <X,​Y,​Z>
      Tuples.Triple<X,​Y,​Z>
      of​(X a, Y b, Z c)
      Creates a new three-value wrapper
      • Methods inherited from class java.lang.Object

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

      • a

        public volatile A a
        The wrapped value
      • b

        public volatile B b
        The wrapped value
      • c

        public volatile C c
        The wrapped value
    • Constructor Detail

      • Triple

        public Triple​(A a,
                      B b,
                      C c)
        Creates a new three-value wrapper
        Parameters:
        a - the first value
        b - the second value
        c - the third value
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • of

        public static <X,​Y,​Z> Tuples.Triple<X,​Y,​Z> of​(X a,
                                                                              Y b,
                                                                              Z c)
        Creates a new three-value wrapper
        Type Parameters:
        X - the first value type
        Y - the second value type
        Z - the third value type
        Parameters:
        a - the first value
        b - the second value
        c - the third value
        Returns:
        a new three-value wrapper