net.sf.magicproject.tools
Class PairStringInt
java.lang.Object
net.sf.magicproject.tools.PairStringInt
- All Implemented Interfaces:
- java.lang.Comparable<PairStringInt>
public class PairStringInt
- extends java.lang.Object
- implements java.lang.Comparable<PairStringInt>
- Author:
- Fabrice Daugan
Field Summary |
java.lang.String |
text
The stored string instance. |
int |
value
The stored int value. |
Constructor Summary |
PairStringInt(java.lang.String text,
int value)
Creates a new instance of PairStringInt
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
text
public java.lang.String text
- The stored string instance.
value
public int value
- The stored int value.
PairStringInt
public PairStringInt(java.lang.String text,
int value)
- Creates a new instance of PairStringInt
- Parameters:
text
- value
-
compareTo
public int compareTo(PairStringInt pair)
- Specified by:
compareTo
in interface java.lang.Comparable<PairStringInt>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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
Copyright © 2003-2007 Magic-Project. All Rights Reserved.