edu.stanford.nlp.util
Class Quadruple<T1,T2,T3,T4>
java.lang.Object
edu.stanford.nlp.util.Quadruple<T1,T2,T3,T4>
- All Implemented Interfaces:
- PrettyLoggable, java.io.Serializable
public class Quadruple<T1,T2,T3,T4>
- extends java.lang.Object
- implements java.io.Serializable, PrettyLoggable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
first
public T1 first
second
public T2 second
third
public T3 third
fourth
public T4 fourth
Quadruple
public Quadruple(T1 first,
T2 second,
T3 third,
T4 fourth)
first
public T1 first()
second
public T2 second()
third
public T3 third()
fourth
public T4 fourth()
setFirst
public void setFirst(T1 o)
setSecond
public void setSecond(T2 o)
setThird
public void setThird(T3 o)
setFourth
public void setFourth(T4 o)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
makeQuadruple
public static <T1,T2,T3,T4> Quadruple<T1,T2,T3,T4> makeQuadruple(T1 t1,
T2 t2,
T3 t3,
T4 t4)
- Returns a Quadruple constructed from T1, T2, T3, and T4. Convenience
method; the compiler will disambiguate the classes used for you so that you
don't have to write out potentially long class names.
asList
public java.util.List<java.lang.Object> asList()
prettyLog
public void prettyLog(Redwood.RedwoodChannels channels,
java.lang.String description)
- Pretty logs the current object to specific Redwood channels.
- Specified by:
prettyLog
in interface PrettyLoggable
- Parameters:
channels
- the channels which should be logged to -- all logging calls should
use logging methods on the channels (e.g. channels.log(), etc.)description
- The description of the object. It will potentially identify the
object's functional role or (failing that) its class. This is
typically used as a track name surrounding the contents of this
object.
Stanford NLP Group