|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyNull
class AnyNull
| Field Summary | |
static NativeClass |
_class
|
static Any |
INSTANCE
|
| Fields inherited from class anvil.core.Any |
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO |
| Method Summary | |
ClassType |
classOf()
Returns the type of this Any. |
protected int |
compare(Any other)
|
Any |
decrease()
Decrease the value by one. |
boolean |
equals(java.lang.Object obj)
Tests for equality. |
int |
hashCode()
|
Any |
increase()
Increase the value by one. |
boolean |
isNull()
Checks if this any is null. |
BindingIterator |
iterator()
|
byte[] |
toBinary()
Gets the contained value as byte[]. |
boolean |
toBoolean()
Gets the contained value as boolean. |
int |
typeOf()
Returns the type of contained value. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final NativeClass _class
public static final Any INSTANCE
| Method Detail |
public int typeOf()
Any
typeOf in class Anypublic ClassType classOf()
Any
classOf in class Anypublic boolean isNull()
Anynull.
isNull in class Anytrue if this is nullpublic BindingIterator iterator()
iterator in class Anypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Any
equals in class Anytrue if equal, false otherwise.protected int compare(Any other)
compare in class Anypublic boolean toBoolean()
Anyboolean.
Integer is considered true if it is different from 0.
Double is considered true if it is different from 0.0.
String is considered true if it contains
"true", "on",
"yes" or "1".
toBoolean in class Anypublic byte[] toBinary()
Anybyte[].
toBinary in class Anybyte[] or null if this instance
isn't AnyBinary.public Any increase()
Any
increase in class Anypublic Any decrease()
Any
decrease in class Any
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||