Class Pair<F,S>
- java.lang.Object
-
- de.dytanic.cloudnet.common.collection.Pair<F,S>
-
- Type Parameters:
F- the first type, which you want to definedS- the second type which you want to defined
public class Pair<F,S> extends java.lang.ObjectThis class can capture 2 references of 2 types and set or clear the data using setFirst() / getFirst() and setSecond() / getSecond(). It can be used to return multiple objects of a method, or to easily capture multiple objects without creating their own class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FgetFirst()SgetSecond()voidsetFirst(F first)voidsetSecond(S second)
-