public final class ObjectExtensions extends Object
ObjectExtensions provides extension methods to check if the object is the
default value.| Constructor and Description |
|---|
ObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ClassType |
getClassType(Class<T> clazz)
Gets the
ClassType from the given class. |
static <T> boolean |
isDefaultValue(Class<?> fieldClass,
T object)
Checks if the given object has the default value.
|
static <T> boolean |
isNotDefaultValue(Class<?> fieldClass,
T object)
Checks if the given object has not the default value.
|
public static final <T> boolean isDefaultValue(Class<?> fieldClass, T object)
T - the generic typefieldClass - the field classobject - the objectpublic static final <T> boolean isNotDefaultValue(Class<?> fieldClass, T object)
T - the generic typefieldClass - the field classobject - the objectCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.