|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.SerIteratorFactory
org.joda.beans.ser.GuavaSerIteratorFactory
org.joda.beans.ser.CollectSerIteratorFactory
public class CollectSerIteratorFactory
Factory used to create wrappers around collection-like objects.
| Field Summary |
|---|
| Fields inherited from class org.joda.beans.ser.SerIteratorFactory |
|---|
EMPTY_VALUE_TYPES, INSTANCE |
| Constructor Summary | |
|---|---|
CollectSerIteratorFactory()
|
|
| Method Summary | |
|---|---|
SerIterator |
create(Object value,
MetaProperty<?> prop,
Class<?> beanClass)
Creates an iterator wrapper for a meta-property value. |
SerIterator |
createChild(Object value,
SerIterator parent)
Creates an iterator wrapper for a value retrieved from a parent iterator. |
SerIterable |
createIterable(MetaProperty<?> prop,
Class<?> beanClass)
Creates an iterator wrapper for a meta-property value. |
SerIterable |
createIterable(String metaTypeDescription,
JodaBeanSer settings,
Map<String,Class<?>> knownTypes)
Creates an iterator wrapper for a meta-property value. |
static SerIterable |
grid(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for Grid. |
static SerIterator |
grid(org.joda.collect.grid.Grid<?> grid,
Class<?> declaredType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterator wrapper for Grid. |
| Methods inherited from class org.joda.beans.ser.GuavaSerIteratorFactory |
|---|
biMap, biMap, immutableList, immutableSet, immutableSortedSet, listMultimap, multimap, multiset, multiset, setMultimap, sortedMultiset, table, table |
| Methods inherited from class org.joda.beans.ser.SerIteratorFactory |
|---|
array, array, collection, createIterable, defaultToObjectClass, list, map, map, navigableMap, navigableSet, set, sortedMap, sortedSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectSerIteratorFactory()
| Method Detail |
|---|
public SerIterator create(Object value,
MetaProperty<?> prop,
Class<?> beanClass)
create in class GuavaSerIteratorFactoryvalue - the possible collection-like object, not nullprop - the meta-property defining the value, not nullbeanClass - the class of the bean, not the meta-property, for better generics, not null
public SerIterator createChild(Object value,
SerIterator parent)
Allows the parent iterator to define the child iterator using generic type information.
This handles cases such as a List as the value in a Map.
createChild in class GuavaSerIteratorFactoryvalue - the possible collection-like object, not nullparent - the parent iterator, not null
public SerIterable createIterable(String metaTypeDescription,
JodaBeanSer settings,
Map<String,Class<?>> knownTypes)
createIterable in class GuavaSerIteratorFactorymetaTypeDescription - the description of the collection type, not nullsettings - the settings object, not nullknownTypes - the known types map, null if not using known type shortening
public SerIterable createIterable(MetaProperty<?> prop,
Class<?> beanClass)
createIterable in class GuavaSerIteratorFactoryprop - the meta-property defining the value, not nullbeanClass - the class of the bean, not the meta-property, for better generics, not null
public static final SerIterable grid(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Grid.
valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
public static final SerIterator grid(org.joda.collect.grid.Grid<?> grid,
Class<?> declaredType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Grid.
grid - the collection, not nulldeclaredType - the declared type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||