|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpop.util.Bool
Provides boolean operations in objects of this or Boolean type
Field Summary | |
static Bool |
FALSE
Bool representation of false |
static Bool |
TRUE
Bool representation of true |
Constructor Summary | |
Bool(boolean value)
Constructor for the Bool object |
|
Bool(java.lang.String value)
Constructor for the Bool object |
Method Summary | |
boolean |
and(Bool b)
Performs a logic and operation on the object with b (Same as this && b ) |
static boolean |
and(Bool a,
Bool b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(Bool a,
boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(Bool a,
java.lang.Boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
boolean |
and(boolean b)
Performs a logic and operation on the object with b (Same as this && b ) |
boolean |
and(java.lang.Boolean b)
Performs a logic and operation on the object with b (Same as this && b ) |
static boolean |
and(boolean a,
Bool b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(java.lang.Boolean a,
Bool b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(boolean a,
boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(boolean a,
java.lang.Boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(java.lang.Boolean a,
boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
static boolean |
and(java.lang.Boolean a,
java.lang.Boolean b)
Performs a logic and operation on a and b (Same as a && b ) |
boolean |
booleanValue()
Gets the value of the object |
boolean |
equals(boolean b)
checks a boolean against the value of the object |
boolean |
equals(java.lang.Object obj)
Returns true if and only if the argument is not null and is a Boolean or Bool object that represents the same boolean value as this object. |
static boolean |
getBoolean(java.lang.String name)
Acts in the same way as Boolean.getBoolean(). |
int |
hashCode()
Returns a hash code for this Boolean object. |
boolean |
implies(Bool b)
Performs an implies ( --> ) operation on the object and b |
static boolean |
implies(Bool a,
Bool b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(Bool a,
boolean b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(Bool a,
java.lang.Boolean b)
Performs an implies ( --> ) operation on a and b |
boolean |
implies(boolean b)
Performs an implies ( --> ) operation on the object and b |
boolean |
implies(java.lang.Boolean b)
Performs an implies ( --> ) operation on the object and b |
static boolean |
implies(boolean a,
Bool b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(java.lang.Boolean a,
Bool b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(boolean a,
boolean b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(boolean a,
java.lang.Boolean b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(java.lang.Boolean a,
boolean b)
Performs an implies ( --> ) operation on a and b |
static boolean |
implies(java.lang.Boolean a,
java.lang.Boolean b)
Performs an implies ( --> ) operation on a and b |
static void |
main(java.lang.String[] args)
The main program for the Bool class (Just for testing) |
boolean |
nand(Bool b)
Performs a nand operation on the object and b |
static boolean |
nand(Bool a,
Bool b)
Performs a nand operation on a and b |
static boolean |
nand(Bool a,
boolean b)
Performs a nand operation on a and b |
static boolean |
nand(Bool a,
java.lang.Boolean b)
Performs a nand operation on a and b |
boolean |
nand(boolean b)
Performs a nand operation on the object and b |
boolean |
nand(java.lang.Boolean b)
Performs a nand operation on the object and b |
static boolean |
nand(boolean a,
Bool b)
Performs a nand operation on a and b |
static boolean |
nand(java.lang.Boolean a,
Bool b)
Performs a nand operation on a and b |
static boolean |
nand(boolean a,
boolean b)
Performs a nand operation on a and b |
static boolean |
nand(boolean a,
java.lang.Boolean b)
Performs a nand operation on a and b |
static boolean |
nand(java.lang.Boolean a,
boolean b)
Performs a nand operation on a and b |
static boolean |
nand(java.lang.Boolean a,
java.lang.Boolean b)
Performs a nand operation on a and b |
boolean |
nor(Bool b)
Performs a nor operation on the object and b |
static boolean |
nor(Bool a,
Bool b)
Performs a nor operation on a and b |
static boolean |
nor(Bool a,
boolean b)
Performs a nor operation on a and b |
static boolean |
nor(Bool a,
java.lang.Boolean b)
Performs a nor operation on a and b |
boolean |
nor(boolean b)
Performs a nor operation on the object and b |
boolean |
nor(java.lang.Boolean b)
Performs a nor operation on the object and b |
static boolean |
nor(boolean a,
Bool b)
Performs a nor operation on a and b |
static boolean |
nor(java.lang.Boolean a,
Bool b)
Performs a nor operation on a and b |
static boolean |
nor(boolean a,
boolean b)
Performs a nor operation on a and b |
static boolean |
nor(boolean a,
java.lang.Boolean b)
Performs a nor operation on a and b |
static boolean |
nor(java.lang.Boolean a,
boolean b)
Performs a nor operation on a and b |
static boolean |
nor(java.lang.Boolean a,
java.lang.Boolean b)
Performs a nor operation on a and b |
boolean |
not()
Perform a logic not operation (same as !this ) |
static boolean |
not(Bool b)
Perform a logic not operation on b (same as !b ) |
static boolean |
not(boolean b)
Perform a logic not operation on b (same as !b ) |
static boolean |
not(java.lang.Boolean b)
Perform a logic not operation on b (same as !b ) |
boolean |
or(Bool b)
Performs a logic or operation on the object with b (Same as this || b ) |
static boolean |
or(Bool a,
Bool b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(Bool a,
boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(Bool a,
java.lang.Boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
boolean |
or(boolean b)
Performs a logic or operation on the object with b (Same as this || b ) |
boolean |
or(java.lang.Boolean b)
Performs a logic or operation on the object with b (Same as this || b ) |
static boolean |
or(boolean a,
Bool b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(java.lang.Boolean a,
Bool b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(boolean a,
boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(boolean a,
java.lang.Boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(java.lang.Boolean a,
boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
static boolean |
or(java.lang.Boolean a,
java.lang.Boolean b)
Performs a logic or operation on a and b (Same as a || b ) |
java.lang.String |
toString()
Makes a String description of the object |
static java.lang.String |
toString(boolean b)
Makes a String representation of the logic value of b |
static Bool |
valueOf(boolean b)
Makes a Bool with the value of the boolean b |
static Bool |
valueOf(java.lang.String s)
Makes a Bool with the value of the string s |
boolean |
xor(Bool b)
Performs an eXclusive or operation on the object and b |
static boolean |
xor(Bool a,
Bool b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(Bool a,
boolean b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(Bool a,
java.lang.Boolean b)
Performs an eXclusive or operation on a and b |
boolean |
xor(boolean b)
Performs an eXclusive or operation on the object and b |
boolean |
xor(java.lang.Boolean b)
Performs an eXclusive or operation on the object and b |
static boolean |
xor(boolean a,
Bool b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(java.lang.Boolean a,
Bool b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(boolean a,
boolean b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(boolean a,
java.lang.Boolean b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(java.lang.Boolean a,
boolean b)
Performs an eXclusive or operation on a and b |
static boolean |
xor(java.lang.Boolean a,
java.lang.Boolean b)
Performs an eXclusive or operation on a and b |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Bool TRUE
Bool
representation of true
public static final Bool FALSE
Bool
representation of false
Constructor Detail |
public Bool(boolean value)
Bool
object
value
- The logic value of the objectpublic Bool(java.lang.String value)
Bool
object
value
- A case insensitive String representing the logic value of the object, like
"true"
Method Detail |
public static boolean getBoolean(java.lang.String name)
name
- the system property name.
public static java.lang.String toString(boolean b)
b
- A boolean for which a String is required
public static Bool valueOf(java.lang.String s)
Bool
with the value of the string s
s
- A case insensitive string that signals the value of the Bool ("true" returns true,
"dog" returns false.
public static Bool valueOf(boolean b)
Bool
with the value of the boolean b
b
- Description of Parameter
public static void main(java.lang.String[] args)
args
- The command line argumentspublic static boolean not(Bool b)
!b
)
b
- The value to apply logical not to
public static boolean not(java.lang.Boolean b)
!b
)
b
- The value to apply logical not to
public static boolean not(boolean b)
!b
)
b
- The value to apply logical not to
public static boolean and(boolean a, boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(boolean a, Bool b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(boolean a, java.lang.Boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(Bool a, boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(Bool a, Bool b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(Bool a, java.lang.Boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(java.lang.Boolean a, boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(java.lang.Boolean a, Bool b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean and(java.lang.Boolean a, java.lang.Boolean b)
a && b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(boolean a, boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(boolean a, Bool b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(boolean a, java.lang.Boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(Bool a, boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(Bool a, Bool b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(Bool a, java.lang.Boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(java.lang.Boolean a, boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(java.lang.Boolean a, Bool b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean or(java.lang.Boolean a, java.lang.Boolean b)
a || b
)
b
- The first object to perform the operation witha
- Description of Parameter
public static boolean xor(boolean a, boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(boolean a, Bool b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(boolean a, java.lang.Boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(Bool a, boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(Bool a, Bool b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(Bool a, java.lang.Boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(java.lang.Boolean a, boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(java.lang.Boolean a, Bool b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean xor(java.lang.Boolean a, java.lang.Boolean b)
a
- A boolean to xor withb
- A boolean to xor with
public static boolean nand(boolean a, boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(boolean a, Bool b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(boolean a, java.lang.Boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(Bool a, boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(Bool a, Bool b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(Bool a, java.lang.Boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(java.lang.Boolean a, boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(java.lang.Boolean a, Bool b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nand(java.lang.Boolean a, java.lang.Boolean b)
a
- A boolean to nand with bb
- A boolean to nand with a
public static boolean nor(boolean a, boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(boolean a, Bool b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(boolean a, java.lang.Boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(Bool a, boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(Bool a, Bool b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(Bool a, java.lang.Boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(java.lang.Boolean a, boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(java.lang.Boolean a, Bool b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean nor(java.lang.Boolean a, java.lang.Boolean b)
a
- A boolean to nor with bb
- A boolean to nor with a
public static boolean implies(boolean a, boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(boolean a, Bool b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(boolean a, java.lang.Boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(Bool a, boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(Bool a, Bool b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(Bool a, java.lang.Boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(java.lang.Boolean a, boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(java.lang.Boolean a, Bool b)
a
- A boolean to check with bb
- A boolean to check with a
public static boolean implies(java.lang.Boolean a, java.lang.Boolean b)
a
- A boolean to check with bb
- A boolean to check with a
public boolean booleanValue()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj
- the object to compare with.
public boolean equals(boolean b)
b
- the boolean to check with
public boolean or(Bool b)
this || b
)
b
- The object to perform the operation with
public boolean or(java.lang.Boolean b)
this || b
)
b
- The object to perform the operation with
public boolean or(boolean b)
this || b
)
b
- The object to perform the operation with
public boolean and(Bool b)
this && b
)
b
- The object to perform the operation with
public boolean and(java.lang.Boolean b)
this && b
)
b
- The object to perform the operation with
public boolean and(boolean b)
this && b
)
b
- The object to perform the operation with
public boolean not()
!this
)
public boolean xor(boolean b)
b
- A boolean to xor with the object
public boolean xor(java.lang.Boolean b)
b
- A boolean to xor with the object
public boolean xor(Bool b)
b
- A boolean to xor with the object
public boolean nand(boolean b)
b
- A boolean to nand with the object
public boolean nand(Bool b)
b
- A boolean to nand with the object
public boolean nand(java.lang.Boolean b)
b
- A boolean to nand with the object
public boolean nor(boolean b)
b
- A boolean to nor with the object
public boolean nor(Bool b)
b
- A boolean to nor with the object
public boolean nor(java.lang.Boolean b)
b
- A boolean to nor with the object
public boolean implies(boolean b)
b
- A boolean to check with the object
public boolean implies(Bool b)
b
- A boolean to check with the object
public boolean implies(java.lang.Boolean b)
b
- A boolean to check with the object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |