net.sf.magicproject.tools
Class PairIntObject<T>

java.lang.Object
  extended by net.sf.magicproject.tools.PairIntObject<T>
Type Parameters:
T - The type of value.
All Implemented Interfaces:
java.lang.Comparable<PairIntObject<T>>

public class PairIntObject<T>
extends java.lang.Object
implements java.lang.Comparable<PairIntObject<T>>

Since:
0.81
Author:
Fabrice Daugan

Field Summary
 int key
          The stored int value.
 T value
          The stored object.
 
Constructor Summary
PairIntObject(int key, T value)
          Creates a new instance of this class
 
Method Summary
 int compareTo(PairIntObject<T> arg0)
           
 boolean equals(java.lang.Object context)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public int key
The stored int value.


value

public T value
The stored object.

Constructor Detail

PairIntObject

public PairIntObject(int key,
                     T value)
Creates a new instance of this class

Parameters:
key - the key
value - the value
Method Detail

compareTo

public int compareTo(PairIntObject<T> arg0)
Specified by:
compareTo in interface java.lang.Comparable<PairIntObject<T>>

equals

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

hashCode

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

toString

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


Copyright © 2003-2007 Magic-Project. All Rights Reserved.