org.fusesource.common.util
Class Pair<A,B>

java.lang.Object
  extended by org.fusesource.common.util.Pair<A,B>

public class Pair<A,B>
extends java.lang.Object

Represents a pair of values so its easy to return 2 values from a function call


Constructor Summary
Pair(A first, B second)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getFirst

public A getFirst()

getSecond

public B getSecond()


Copyright © 2014 Red Hat. All Rights Reserved.