|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.jscience.mathematics.algebraic.numbers.ComparableNumber<Boolean>
org.jscience.mathematics.algebraic.numbers.Boolean
public final class Boolean
The Boolean class encapsulates Boolean numbers.
Lattice,
Serialized Form| Field Summary | |
|---|---|
static Boolean |
FALSE
DOCUMENT ME! |
static Boolean |
NaN
DOCUMENT ME! |
static Boolean |
NEGATIVE_INFINITY
DOCUMENT ME! |
static Boolean |
POSITIVE_INFINITY
DOCUMENT ME! |
static Boolean |
TRUE
DOCUMENT ME! |
static java.lang.Class |
TYPE
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Boolean(boolean num)
Constructs a boolean number. |
|
Boolean(Boolean num)
Constructs a boolean number. |
|
Boolean(java.lang.String s)
Constructs the boolean number represented by a string. |
|
| Method Summary | |
|---|---|
Boolean |
and(Boolean n)
Returns the conjunction of this boolean number and another. |
java.lang.Object |
clone()
DOCUMENT ME! |
int |
compareTo(Boolean that)
DOCUMENT ME! |
int |
compareTo(ComparableNumber obj)
Compares two boolean numbers. |
BooleanAlgebra.Member |
complement()
Returns the negation of this number. |
double |
doubleValue()
DOCUMENT ME! |
boolean |
equals(java.lang.Object obj)
Compares two boolean numbers for equality. |
float |
floatValue()
DOCUMENT ME! |
Boolean |
getDistance(ComparableNumber n)
Returns FALSE if the values are equal, TRUE otherwise |
Boolean |
getNaN()
DOCUMENT ME! |
Boolean |
getNegativeInfinity()
DOCUMENT ME! |
Boolean |
getPositiveInfinity()
DOCUMENT ME! |
int |
hashCode()
Returns a hash code for this Boolean object. |
int |
intValue()
DOCUMENT ME! |
boolean |
isInfinite()
DOCUMENT ME! |
boolean |
isNaN()
DOCUMENT ME! |
boolean |
isNegativeInfinity()
DOCUMENT ME! |
boolean |
isPositiveInfinity()
DOCUMENT ME! |
Boolean |
join(Boolean n)
Returns the disjunction of this boolean number and another. |
Lattice.Member |
join(JoinSemiLattice.Member n)
Returns the disjunction of this number and another. |
long |
longValue()
DOCUMENT ME! |
Boolean |
max(Boolean val)
Returns the max of this number and another, according to compareTo rules. |
Boolean |
meet(Boolean n)
Returns the conjunction of this boolean number and another. |
Lattice.Member |
meet(MeetSemiLattice.Member n)
Returns the conjunction of this number and another. |
Boolean |
min(Boolean val)
Returns the min of this number and another, according to compareTo rules. |
Boolean |
not()
Returns the negation of this number. |
Boolean |
or(Boolean n)
Returns the disjunction of this boolean number and another. |
java.lang.String |
toString()
Returns a string representing the value of this boolean number. |
boolean |
value()
Returns the integer value. |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Boolean FALSE
public static final Boolean TRUE
public static final Boolean NEGATIVE_INFINITY
public static final Boolean POSITIVE_INFINITY
public static final Boolean NaN
public static final java.lang.Class TYPE
| Constructor Detail |
|---|
public Boolean(boolean num)
public Boolean(Boolean num)
public Boolean(java.lang.String s)
throws java.lang.NumberFormatException
s - a string representing an integer number.
java.lang.NumberFormatException - if the string does not contain a parsable number.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - a boolean number.
public int compareTo(ComparableNumber obj)
throws java.lang.IllegalArgumentException
obj - an boolean number.
this<obj, zero if
this==obj, and a positive value if
this>obj.
java.lang.IllegalArgumentException - DOCUMENT ME!public java.lang.String toString()
toString in class java.lang.Objectpublic boolean value()
public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic Boolean min(Boolean val)
min in class ComparableNumber<Boolean>val - DOCUMENT ME!
public Boolean max(Boolean val)
max in class ComparableNumber<Boolean>val - DOCUMENT ME!
public int hashCode()
hashCode in class java.lang.Objectpublic Boolean getDistance(ComparableNumber n)
getDistance in class ComparableNumber<Boolean>n - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public boolean isNaN()
isNaN in class ComparableNumber<Boolean>public boolean isInfinite()
isInfinite in class ComparableNumber<Boolean>public boolean isNegativeInfinity()
isNegativeInfinity in class ComparableNumber<Boolean>public boolean isPositiveInfinity()
isPositiveInfinity in class ComparableNumber<Boolean>public Boolean getNaN()
getNaN in class ComparableNumber<Boolean>public Boolean getNegativeInfinity()
getNegativeInfinity in class ComparableNumber<Boolean>public Boolean getPositiveInfinity()
getPositiveInfinity in class ComparableNumber<Boolean>public int compareTo(Boolean that)
compareTo in interface java.lang.Comparable<Boolean>that - DOCUMENT ME!
public BooleanAlgebra.Member complement()
complement in interface BooleanAlgebra.Memberpublic Boolean not()
public Lattice.Member join(JoinSemiLattice.Member n)
join in interface JoinSemiLattice.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Boolean join(Boolean n)
n - DOCUMENT ME!
public Boolean or(Boolean n)
n - DOCUMENT ME!
public Lattice.Member meet(MeetSemiLattice.Member n)
meet in interface MeetSemiLattice.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Boolean meet(Boolean n)
n - an boolean number.
public Boolean and(Boolean n)
n - DOCUMENT ME!
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||