Package edu.stanford.nlp.util
Class Quintuple<T1,T2,T3,T4,T5>
- java.lang.Object
-
- edu.stanford.nlp.util.Quintuple<T1,T2,T3,T4,T5>
-
- All Implemented Interfaces:
PrettyLoggable,Serializable,Comparable<Quintuple<T1,T2,T3,T4,T5>>
public class Quintuple<T1,T2,T3,T4,T5> extends Object implements Comparable<Quintuple<T1,T2,T3,T4,T5>>, Serializable, PrettyLoggable
A quintuple (length five) of ordered objects.- Author:
- Spence Green
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>asList()intcompareTo(Quintuple<T1,T2,T3,T4,T5> another)booleanequals(Object o)T5fifth()T1first()T4fourth()inthashCode()static <T1,T2,T3,T4,T5>
Quintuple<T1,T2,T3,T4,T5>makeQuadruple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)Returns a Quadruple constructed from T1, T2, T3, and T4.voidprettyLog(Redwood.RedwoodChannels channels, String description)Pretty logs the current object to specific Redwood channels.T2second()voidsetFifth(T5 fifth)voidsetFirst(T1 o)voidsetFourth(T4 o)voidsetSecond(T2 o)voidsetThird(T3 o)T3third()StringtoString()
-
-
-
Method Detail
-
first
public T1 first()
-
second
public T2 second()
-
third
public T3 third()
-
fourth
public T4 fourth()
-
fifth
public T5 fifth()
-
setFirst
public void setFirst(T1 o)
-
setSecond
public void setSecond(T2 o)
-
setThird
public void setThird(T3 o)
-
setFourth
public void setFourth(T4 o)
-
setFifth
public void setFifth(T5 fifth)
-
makeQuadruple
public static <T1,T2,T3,T4,T5> Quintuple<T1,T2,T3,T4,T5> makeQuadruple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
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.
-
compareTo
public int compareTo(Quintuple<T1,T2,T3,T4,T5> another)
- Specified by:
compareToin interfaceComparable<T1>
-
prettyLog
public void prettyLog(Redwood.RedwoodChannels channels, String description)
Pretty logs the current object to specific Redwood channels.- Specified by:
prettyLogin interfacePrettyLoggable- 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.
-
-