jasm.util
Class Pair<FIRST,SECOND>

java.lang.Object
  extended by jasm.util.Pair<FIRST,SECOND>
Type Parameters:
FIRST - Type of first item
SECOND - Type of second item
Direct Known Subclasses:
Triple

public class Pair<FIRST,SECOND>
extends java.lang.Object

This class represents a pair of items

Author:
David J. Pearce

Field Summary
protected  FIRST first
           
protected  SECOND second
           
 
Constructor Summary
Pair(FIRST f, SECOND s)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 FIRST first()
           
 int hashCode()
           
 SECOND second()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

protected final FIRST first

second

protected final SECOND second
Constructor Detail

Pair

public Pair(FIRST f,
            SECOND s)
Method Detail

first

public FIRST first()

second

public SECOND second()

hashCode

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

equals

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

toString

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


Copyright © 2013 David J. Pearce. All Rights Reserved.