@ComponentSpecification public interface PojoUtil
POJOs
.PojoDescriptorBuilder
,
ReflectionUtil
Modifier and Type | Method and Description |
---|---|
void |
visitObjectRecursive(Object object,
Filter<Object> visitor)
This method recursively traverses all objects starting from the given
Object via all properties
and contents. |
void |
visitObjectRecursive(Object object,
Filter<Object> visitor,
boolean loopProtection)
This method recursively traverses all objects starting from the given
Object via all properties
and contents. |
void visitObjectRecursive(Object object, Filter<Object> visitor)
Object
via all properties
and contents. It simply delegates to visitObjectRecursive(Object, Filter, boolean)
using
true
for loopProtection
.void visitObjectRecursive(Object object, Filter<Object> visitor, boolean loopProtection)
Object
via all properties
and contents. It supports Collection
s, Map
s, Object
arrays
, and Pojo
s. primitive
arrays
for performance reasons. Simply realize this inside your visitor
if you need it.object
- is the Object
to traverse recursively.visitor
- is the Filter
invoked
for all traversed
Object
s. If an Object
is not accepted
by this
Filter
the recursion stops at this point.loopProtection
- - true
to collect all visited Object
s in a Set
in order to
prevent infinity loops, false
otherwise (to save performance if no loops are possible for
the given Object
).Copyright © 2001–2016 mmm-Team. All rights reserved.