Package ca.phon.util

Class Tuple<T,S>

java.lang.Object
ca.phon.util.Tuple<T,S>
All Implemented Interfaces:
Comparable<Tuple<? extends T,? extends S>>
Direct Known Subclasses:
GroupLocation, GroupRange, PhoneMapDisplay.AlignmentChangeData, RecordLocation, RecordRange, ScriptParamGroup, SessionLocation, SessionPath, SessionRange, SimpleEditorPanel.DocumentError, SimpleEditorPanel.StockItemTuple, SyllabificationDisplay.SyllabificationChangeData

public class Tuple<T,S> extends Object implements Comparable<Tuple<? extends T,? extends S>>
Tuple of elements.
  • Constructor Details

    • Tuple

      public Tuple()
      Constructor
    • Tuple

      public Tuple(T obj1, S obj2)
      Constructor with objects
  • Method Details

    • getObj1

      public T getObj1()
    • setObj1

      public void setObj1(T obj1)
    • getObj2

      public S getObj2()
    • setObj2

      public void setObj2(S obj2)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Tuple<? extends T,? extends S> o)
      Specified by:
      compareTo in interface Comparable<T>