|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.commons.util.collection.Pair<S,T>
public class Pair<S,T>
A class that holds two typed objects together; mostly useful to return multiple values from a method, without having to make a dedicated class, or using an untyped collection or array that would require casting the contents in the calling method.
Field Summary | |
---|---|
private S |
first
|
private T |
second
|
Constructor Summary | |
---|---|
Pair(S first,
T second)
|
Method Summary | |
---|---|
S |
getFirst()
|
T |
getSecond()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private S first
private T second
Constructor Detail |
---|
public Pair(S first, T second)
Method Detail |
---|
public S getFirst()
public T getSecond()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |