Class Tuple<A,B>

java.lang.Object
org.broadleafcommerce.common.util.Tuple<A,B>

public class Tuple<A,B> extends Object
This Tuple class can be used when you want to return two elements from a function in a type safe way.
Author:
Andre Azzolini (apazzolini)
  • Field Details

    • one

      protected final A one
    • two

      protected final B two
  • Constructor Details

    • Tuple

      public Tuple(A one, B two)
  • Method Details

    • getFirst

      public A getFirst()
    • getSecond

      public B getSecond()