Package ch.nolix.core.reflection
Klasse ObjectTool
java.lang.Object
ch.nolix.core.reflection.ObjectTool
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFirstFieldOfObjectThatStoresValue
(Object object, Object value) getNameOfFirstFieldOfObjectThatStoresValue
(Object object, Object value) getValueOfFieldOfObject
(Object object, Field field) <A extends Annotation>
booleanhasAnnotation
(AnnotatedElement object, Class<A> annotationType)
-
Konstruktordetails
-
ObjectTool
public ObjectTool()
-
-
Methodendetails
-
getFirstFieldOfObjectThatStoresValue
-
getNameOfFirstFieldOfObjectThatStoresValue
-
getValueOfFieldOfObject
-
hasAnnotation
public <A extends Annotation> boolean hasAnnotation(AnnotatedElement object, Class<A> annotationType) - Typparameter:
A
- is the given annotationType.- Parameter:
object
-annotationType
-- Gibt zurück:
- true if the given object has an annotation of the given annotationType.
-