|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rythmengine.utils.Eval
public class Eval
Evaluate an object and return boolean value by convention
| Constructor Summary | |
|---|---|
Eval()
|
|
| Method Summary | |
|---|---|
static boolean |
eval(boolean b)
return the specified boolean directly |
static boolean |
eval(Boolean b)
|
static boolean |
eval(byte b)
return true if the specified byte b != 0 |
static boolean |
eval(Byte b)
|
static boolean |
eval(char c)
return true if the specified char c != 0 |
static boolean |
eval(Character c)
|
static boolean |
eval(Collection c)
Return true if the collection is not empty |
static boolean |
eval(double d)
return true if the specified double Math.abs(f) > 0.00000001 |
static boolean |
eval(Double d)
|
static boolean |
eval(float f)
return true if the specified float Math.abs(f) > 0.00000001 |
static boolean |
eval(Float f)
|
static boolean |
eval(int n)
return true if the specified integer n != 0 |
static boolean |
eval(long l)
return true if the specified long l != 0 |
static boolean |
eval(Map m)
Return true if the map is not empty |
static boolean |
eval(Number n)
Evaluate the number's int value |
static boolean |
eval(Object condition)
General object type evaluation. |
static boolean |
eval(String s)
Return true if the specified string does not equals, ignore case, to "false" or "no" |
static Locale |
locale(Locale locale)
Eval Locale from a Locale |
static Locale |
locale(String language)
Eval locale from language string |
static Locale |
locale(String language,
String region)
Eval locale from language and region |
static Locale |
locale(String language,
String region,
String variant)
Eval locale from language, region and variant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Eval()
| Method Detail |
|---|
public static boolean eval(byte b)
true if the specified byte b != 0
b -
public static boolean eval(char c)
true if the specified char c != 0
c -
public static boolean eval(boolean b)
b -
public static boolean eval(int n)
true if the specified integer n != 0
n -
public static boolean eval(long l)
true if the specified long l != 0
l -
public static boolean eval(float f)
true if the specified float Math.abs(f) > 0.00000001
f -
public static boolean eval(double d)
true if the specified double Math.abs(f) > 0.00000001
d -
public static boolean eval(String s)
s -
public static boolean eval(Collection c)
true if the collection is not empty
c -
public static boolean eval(Map m)
true if the map is not empty
m -
public static boolean eval(Byte b)
b -
eval(boolean)public static boolean eval(Boolean b)
b -
eval(boolean)public static boolean eval(Character c)
c -
eval(char)public static boolean eval(Float f)
f -
eval(float)public static boolean eval(Double d)
d -
eval(double)public static boolean eval(Number n)
n -
eval(int)public static boolean eval(Object condition)
false if the object instance is nullfalse if the object instance is an empty Collection or MapNumber.intValue() to evaluate
condition -
public static Locale locale(Locale locale)
locale -
public static Locale locale(String language)
language -
public static Locale locale(String language,
String region)
language - region -
public static Locale locale(String language,
String region,
String variant)
language - region - variant -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||