com.zeroturnaround.liverebel.util
Class Pair<F,S>

java.lang.Object
  extended by com.zeroturnaround.liverebel.util.Pair<F,S>
Type Parameters:
F - - type of the first member of the pair
S - - 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

Method Summary
 boolean equals(Object other)
           
 F getFirst()
           
 S getSecond()
           
 int hashCode()
           
static
<F,S> Pair<F,S>
of(F first, S second)
          Make a new pair of given arguments.
 void setFirst(F first)
           
 void setSecond(S second)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.