org.hornetq.api.core
Class Pair<A,B>

java.lang.Object
  extended by org.hornetq.api.core.Pair<A,B>
All Implemented Interfaces:
Serializable

public class Pair<A,B>
extends Object
implements Serializable

A Pair is a holder for 2 objects.

Author:
Tim Fox
See Also:
Serialized Form

Field Summary
 A a
           
 B b
           
 
Constructor Summary
Pair(A a, B b)
           
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public A a

b

public B b
Constructor Detail

Pair

public Pair(A a,
            B b)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 Red Hat Inc. All Rights Reserved.