net.sf.magicproject.tools
Class PairIntObject<T>
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
key
public int key
- The stored int value.
value
public T value
- The stored object.
PairIntObject
public PairIntObject(int key,
T value)
- Creates a new instance of this class
- Parameters:
key
- the keyvalue
- the value
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.