Class Pair<F,S>

java.lang.Object
org.rcsb.strucmotif.domain.Pair<F,S>
Type Parameters:
F - the first type
S - the second type

public class Pair<F,S> extends Object
Defines a relation between 2 objects.
  • Constructor Details

    • Pair

      public Pair(F first, S second)
      Construct a pair.
      Parameters:
      first - 1st element
      second - 2nd element
  • Method Details

    • getFirst

      public F getFirst()
      The first element.
      Returns:
      the wrapped object
    • getSecond

      public S getSecond()
      The second element.
      Returns:
      the wrapped object
    • toString

      public String toString()
      Overrides:
      toString in class Object