public class GuavaSerIteratorFactory extends SerIteratorFactory
EMPTY_VALUE_TYPES, INSTANCE| Constructor and Description |
|---|
GuavaSerIteratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SerIterator |
biMap(com.google.common.collect.BiMap<?,?> map,
Class<?> declaredType,
Class<?> keyType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterator wrapper for
BiMap. |
static SerIterable |
biMap(Class<?> keyType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
BiMap. |
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 |
immutableList(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
ImmutableList. |
static SerIterable |
immutableSet(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
ImmutableSet. |
static SerIterable |
immutableSortedSet(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
ImmutableSortedSet. |
static SerIterable |
listMultimap(Class<?> keyType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
ListMultimap. |
static SerIterator |
multimap(com.google.common.collect.Multimap<?,?> map,
Class<?> declaredType,
Class<?> keyType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterator wrapper for
Multimap. |
static SerIterable |
multiset(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
Multiset. |
static SerIterator |
multiset(com.google.common.collect.Multiset<?> multiset,
Class<?> declaredType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterator wrapper for
Multiset. |
static SerIterable |
setMultimap(Class<?> keyType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
SetMultimap. |
static SerIterable |
sortedMultiset(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
SortedMultiset. |
static SerIterable |
table(Class<?> rowType,
Class<?> colType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterable wrapper for
Table. |
static SerIterator |
table(com.google.common.collect.Table<?,?,?> table,
Class<?> declaredType,
Class<?> rowType,
Class<?> colType,
Class<?> valueType,
List<Class<?>> valueTypeTypes)
Gets an iterator wrapper for
Table. |
array, array, collection, createIterable, defaultToObjectClass, list, map, map, navigableMap, navigableSet, set, sortedMap, sortedSetpublic SerIterator create(Object value, MetaProperty<?> prop, Class<?> beanClass)
create in class SerIteratorFactoryvalue - 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 nullpublic 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 SerIteratorFactoryvalue - the possible collection-like object, not nullparent - the parent iterator, not nullpublic SerIterable createIterable(String metaTypeDescription, JodaBeanSer settings, Map<String,Class<?>> knownTypes)
createIterable in class SerIteratorFactorymetaTypeDescription - the description of the collection type, not nullsettings - the settings object, not nullknownTypes - the known types map, null if not using known type shorteningpublic SerIterable createIterable(MetaProperty<?> prop, Class<?> beanClass)
createIterable in class SerIteratorFactoryprop - the meta-property defining the value, not nullbeanClass - the class of the bean, not the meta-property, for better generics, not nullpublic static final SerIterable biMap(Class<?> keyType, Class<?> valueType, List<Class<?>> valueTypeTypes)
BiMap.keyType - the value type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable multiset(Class<?> valueType, List<Class<?>> valueTypeTypes)
Multiset.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable sortedMultiset(Class<?> valueType, List<Class<?>> valueTypeTypes)
SortedMultiset.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterator multiset(com.google.common.collect.Multiset<?> multiset, Class<?> declaredType, Class<?> valueType, List<Class<?>> valueTypeTypes)
Multiset.multiset - the collection, not nulldeclaredType - the declared type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable listMultimap(Class<?> keyType, Class<?> valueType, List<Class<?>> valueTypeTypes)
ListMultimap.keyType - the key type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable setMultimap(Class<?> keyType, Class<?> valueType, List<Class<?>> valueTypeTypes)
SetMultimap.keyType - the key type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterator multimap(com.google.common.collect.Multimap<?,?> map, Class<?> declaredType, Class<?> keyType, Class<?> valueType, List<Class<?>> valueTypeTypes)
Multimap.map - the collection, not nulldeclaredType - the declared type, not nullkeyType - the key type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable table(Class<?> rowType, Class<?> colType, Class<?> valueType, List<Class<?>> valueTypeTypes)
Table.rowType - the row type, not nullcolType - the column type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterator table(com.google.common.collect.Table<?,?,?> table, Class<?> declaredType, Class<?> rowType, Class<?> colType, Class<?> valueType, List<Class<?>> valueTypeTypes)
Table.table - the collection, not nulldeclaredType - the declared type, not nullrowType - the row type, not nullcolType - the col type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterator biMap(com.google.common.collect.BiMap<?,?> map, Class<?> declaredType, Class<?> keyType, Class<?> valueType, List<Class<?>> valueTypeTypes)
BiMap.map - the collection, not nulldeclaredType - the declared type, not nullkeyType - the value type, not nullvalueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable immutableList(Class<?> valueType, List<Class<?>> valueTypeTypes)
ImmutableList.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable immutableSortedSet(Class<?> valueType, List<Class<?>> valueTypeTypes)
ImmutableSortedSet.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable immutableSet(Class<?> valueType, List<Class<?>> valueTypeTypes)
ImmutableSet.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typeCopyright © 2007–2017 Joda.org. All rights reserved.