java.lang.Object
com.singularsys.extensions.field.implementations.NumberAsBooleanField
- All Implemented Interfaces:
FieldI, Serializable
public class NumberAsBooleanField
extends Object
implements FieldI
Treat Numbers as boolean values in And &&, Or || and Not ! as in C.
Returns Boolean values.
- Author:
- Richard Morris
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not defined for this field
Not defined for this field
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Not implemented for this field.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NumberAsBooleanField
public NumberAsBooleanField()
-
Method Details
-
and
Description copied from interface: FieldI
Logical and.
- Specified by:
and in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
or
Description copied from interface: FieldI
Logical or.
- Specified by:
or in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
not
Description copied from interface: FieldI
Logical not.
- Specified by:
not in interface FieldI
- Parameters:
l - argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
eq
Not implemented for this field.
- Specified by:
eq in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
ne
Not implemented for this field.
- Specified by:
ne in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
gt
Not implemented for this field.
- Specified by:
gt in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
ge
Not implemented for this field.
- Specified by:
ge in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
lt
Not implemented for this field.
- Specified by:
lt in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
le
Not implemented for this field.
- Specified by:
le in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
add
Not implemented for this field.
- Specified by:
add in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
sub
Not implemented for this field.
- Specified by:
sub in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
neg
Not implemented for this field.
- Specified by:
neg in interface FieldI
- Parameters:
l - the argument
- Returns:
- null
-
mul
Not implemented for this field.
- Specified by:
mul in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
div
Not implemented for this field.
- Specified by:
div in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
mod
Not implemented for this field.
- Specified by:
mod in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
pow
Not implemented for this field.
- Specified by:
pow in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- null
-
getOne
Not defined for this field
- Specified by:
getOne in interface FieldI
- Returns:
- null
-
getZero
Not defined for this field
- Specified by:
getZero in interface FieldI
- Returns:
- null