org.cip4.jdflib.util
Class MyPair<aData,bData>

java.lang.Object
  extended by org.cip4.jdflib.util.MyPair<aData,bData>
Type Parameters:
aData - datatype of a
bData - datatype of b

public class MyPair<aData,bData>
extends Object

trivial typesafe pair class

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG 11.12.2008

Field Summary
 aData a
          the aData value
 bData b
          the bData value
 
Constructor Summary
MyPair(aData ap, bData bp)
           
 
Method Summary
 boolean equals(Object arg0)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public aData a
the aData value


b

public bData b
the bData value

Constructor Detail

MyPair

public MyPair(aData ap,
              bData bp)
Parameters:
ap - aData value
bp - bData value
Method Detail

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2013. All Rights Reserved.