com.zeroturnaround.liverebel.util
Class Pair<F,S>
java.lang.Object
com.zeroturnaround.liverebel.util.Pair<F,S>
- Type Parameters:
F - - type of the first member of the pairS - - type of the second member of the pair
- All Implemented Interfaces:
- Serializable
public final class Pair<F,S>
- extends Object
- implements Serializable
- Author:
- Ats Uiboupin
- See Also:
- Serialized Form
of
public static <F,S> Pair<F,S> of(F first,
S second)
- Make a new pair of given arguments.
- Parameters:
first - The first member.second - The second member.
getFirst
public F getFirst()
getSecond
public S getSecond()
setFirst
public void setFirst(F first)
setSecond
public void setSecond(S second)
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.