net.sf.magicproject.tools
Class PairStringBoolean

java.lang.Object
  extended by net.sf.magicproject.tools.PairStringBoolean
All Implemented Interfaces:
java.lang.Comparable<PairStringBoolean>

public class PairStringBoolean
extends java.lang.Object
implements java.lang.Comparable<PairStringBoolean>

Author:
Fabrice Daugan

Field Summary
 java.lang.String text
          The stored string instance.
 java.lang.Boolean value
          The stored boolean value.
 
Constructor Summary
PairStringBoolean(java.lang.String text, java.lang.Boolean value)
          Creates a new instance of PairStringInt
 
Method Summary
 int compareTo(PairStringBoolean 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 java.lang.Boolean value
The stored boolean value.

Constructor Detail

PairStringBoolean

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

Parameters:
text - thestring key.
value - the boolean value.
Method Detail

compareTo

public int compareTo(PairStringBoolean pair)
Specified by:
compareTo in interface java.lang.Comparable<PairStringBoolean>

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.