net.sf.magicproject.tools
Class PairStringInt

java.lang.Object
  extended by 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
 
Method Summary
 int compareTo(PairStringInt pair)
           
 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

text

public java.lang.String text
The stored string instance.


value

public int value
The stored int value.

Constructor Detail

PairStringInt

public PairStringInt(java.lang.String text,
                     int value)
Creates a new instance of PairStringInt

Parameters:
text -
value -
Method Detail

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.