Package model

Class Pair<T,U>

java.lang.Object
model.Pair<T,U>
Type Parameters:
T - The type of the first object.
U - The type of the second object.

public class Pair<T,U> extends Object
A class that represents a pair of objects.
  • Constructor Details

    • Pair

      public Pair(T first, U second)
      Constructs a new pair.
      Parameters:
      first - The first object.
      second - The second object.
  • Method Details

    • getMap

      public T getMap()
      Returns the first object.
      Returns:
      The first object.
    • setMap

      public void setMap(T map)
      Sets the first object.
      Parameters:
      map - The first object.
    • getFile

      public U getFile()
      Returns the second object.
      Returns:
      The second object.
    • setFile

      public void setFile(U file)
      Sets the second object.
      Parameters:
      file - The second object.