org.jscience.util
Class Trivaluate

java.lang.Object
  extended by org.jscience.util.Trivaluate

public final class Trivaluate
extends java.lang.Object

A class representing a an Object which can take three values: true, false and unknown. It is therefore a kind of extended boolean.


Field Summary
static Trivaluate FALSE
          DOCUMENT ME!
static Trivaluate TRUE
          DOCUMENT ME!
static java.lang.Class TYPE
          DOCUMENT ME!
static Trivaluate UNKNOWN
          DOCUMENT ME!
 
Constructor Summary
Trivaluate(boolean value)
          Creates a new Trivaluate object.
Trivaluate(java.lang.String s)
          Creates a new Trivaluate object.
 
Method Summary
 Trivaluate and(Trivaluate t1, Trivaluate t2)
          DOCUMENT ME!
 boolean booleanValue()
          DOCUMENT ME!
 boolean equals(java.lang.Object obj)
          DOCUMENT ME!
static Trivaluate getTrivaluate(java.lang.String name)
          DOCUMENT ME!
 boolean getValue()
          DOCUMENT ME!
 int hashCode()
          DOCUMENT ME!
 boolean isValuated()
          DOCUMENT ME!
 void not()
          DOCUMENT ME!
 Trivaluate not(Trivaluate t)
          DOCUMENT ME!
 Trivaluate or(Trivaluate t1, Trivaluate t2)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
static java.lang.String toString(Trivaluate t)
          DOCUMENT ME!
static Trivaluate valueOf(boolean b)
          DOCUMENT ME!
static Trivaluate valueOf(java.lang.String s)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE

public static Trivaluate FALSE
DOCUMENT ME!


TRUE

public static Trivaluate TRUE
DOCUMENT ME!


UNKNOWN

public static Trivaluate UNKNOWN
DOCUMENT ME!


TYPE

public static java.lang.Class TYPE
DOCUMENT ME!

Constructor Detail

Trivaluate

public Trivaluate(boolean value)
Creates a new Trivaluate object.

Parameters:
value - DOCUMENT ME!

Trivaluate

public Trivaluate(java.lang.String s)
Creates a new Trivaluate object.

Parameters:
s - DOCUMENT ME!
Method Detail

booleanValue

public boolean booleanValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isValuated

public boolean isValuated()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public boolean getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

and

public Trivaluate and(Trivaluate t1,
                      Trivaluate t2)
DOCUMENT ME!

Parameters:
t1 - DOCUMENT ME!
t2 - DOCUMENT ME!
Returns:
DOCUMENT ME!

or

public Trivaluate or(Trivaluate t1,
                     Trivaluate t2)
DOCUMENT ME!

Parameters:
t1 - DOCUMENT ME!
t2 - DOCUMENT ME!
Returns:
DOCUMENT ME!

not

public Trivaluate not(Trivaluate t)
DOCUMENT ME!

Parameters:
t - DOCUMENT ME!
Returns:
DOCUMENT ME!

not

public void not()
DOCUMENT ME!


equals

public boolean equals(java.lang.Object obj)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!

getTrivaluate

public static Trivaluate getTrivaluate(java.lang.String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!
Returns:
DOCUMENT ME!

hashCode

public int hashCode()
DOCUMENT ME!

Overrides:
hashCode in class java.lang.Object
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

toString

public static java.lang.String toString(Trivaluate t)
DOCUMENT ME!

Parameters:
t - DOCUMENT ME!
Returns:
DOCUMENT ME!

valueOf

public static Trivaluate valueOf(boolean b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

valueOf

public static Trivaluate valueOf(java.lang.String s)
DOCUMENT ME!

Parameters:
s - DOCUMENT ME!
Returns:
DOCUMENT ME!