Module aeonics.core
Package aeonics.util

Class Tuples.Tuple<A,​B>

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

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

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

      Constructors 
      Constructor Description
      Tuple​(A a, B b)
      Creates a new two-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>
      Tuples.Tuple<X,​Y>
      of​(X a, Y b)
      Creates a new two-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
    • Constructor Detail

      • Tuple

        public Tuple​(A a,
                     B b)
        Creates a new two-value wrapper
        Parameters:
        a - the first value
        b - the second value
    • Method Detail

      • equals

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

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