Package jadex.common

Class Tuple2<T,E>

java.lang.Object
jadex.common.Tuple
jadex.common.Tuple2<T,E>
All Implemented Interfaces:
Serializable, Cloneable

public class Tuple2<T,E> extends Tuple
Generic version of tuple for two elements.
See Also:
  • Constructor Details

    • Tuple2

      public Tuple2(T entity1, E entity2)
      Convenience constructor for binary tuples.
      Parameters:
      entity1 - The first object in the tuple.
      entity2 - The second object in the tuple.
  • Method Details

    • getFirstEntity

      public T getFirstEntity()
      Get the first entity.
      Returns:
      The first entity.
    • getSecondEntity

      public E getSecondEntity()
      Get the second entity.
      Returns:
      The second entity.
    • clone

      public Object clone()
      Clone this tuple.
      Overrides:
      clone in class Tuple
      Returns:
      A shallow copy of this tuple.