Klasse ObjectHelper
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ObjectHelper
@VelocityVariable("ObjectHelper")
@VelocityCallable("singleton")
public final class ObjectHelper
extends Object
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetNull()IValueHolder<?> booleanisFalseOrNull(Object p_obj) Checks if the given argument is a booleanfalse, ornull.booleanChecks if the given argument isnull.booleanisTrueOrNull(Object p_obj) Checks if the given argument is a booleantrue, ornull.booleanisVHNull(IValueHolder<?> p_vh) booleanisVHNullOrEmpty(IValueHolder<?> p_vh) Checks if the given object reference isnull, and returns either the object itself if it is notnull, or the provided fallback value if the object reference isnull.
-
Konstruktordetails
-
ObjectHelper
public ObjectHelper()
-
-
Methodendetails
-
isNull
Checks if the given argument isnull.- Parameter:
p_obj- The value to be checked.- Gibt zurück:
trueif the given value isnull, orfalseotherwise.
-
orElse
Checks if the given object reference isnull, and returns either the object itself if it is notnull, or the provided fallback value if the object reference isnull.- Parameter:
p_obj- The object reference to check.p_fallback- The fallback value.- Gibt zurück:
- The value of the object reference if it is not
null, the fallback value otherwise. - Siehe auch:
-
isTrueOrNull
Checks if the given argument is a booleantrue, ornull.- Parameter:
p_obj- A boolean value, ornull.- Gibt zurück:
trueif the given value is a booleantrueornull, orfalseotherwise.- Löst aus:
IllegalArgumentException- If the given argument is neither a boolean value nornull.
-
isFalseOrNull
Checks if the given argument is a booleanfalse, ornull.- Parameter:
p_obj- A boolean value, ornull.- Gibt zurück:
trueif the given value is a booleanfalseornull, orfalseotherwise.- Löst aus:
IllegalArgumentException- If the given argument is neither a boolean value nornull.
-
getNull
-
getNullValueHolder
-
isVHNull
-
isVHNullOrEmpty
-