public class PassThroughFieldExtractor<T> extends Object implements FieldExtractor<T>
FieldExtractor
that just returns the original item. If the item is an
array or collection it will be returned as is, otherwise it is wrapped in a
single element array.Constructor and Description |
---|
PassThroughFieldExtractor() |
Modifier and Type | Method and Description |
---|---|
Object[] |
extract(T item)
Get an array of fields as close as possible to the input.
|
public Object[] extract(T item)
FieldSet
or array will be returned as istoArray()
method will be usedvalues()
will be returned as an arrayextract
in interface FieldExtractor<T>
item
- the object to convertCopyright © 2014 SpringSource. All rights reserved.