|
||||||||||
| 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
public class GuavaSerIteratorFactory
Guava 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 | |
|---|---|
GuavaSerIteratorFactory()
|
|
| Method Summary | |
|---|---|
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. |
| 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 GuavaSerIteratorFactory()
| Method Detail |
|---|
public 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 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 SerIteratorFactoryvalue - 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 SerIteratorFactorymetaTypeDescription - 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 SerIteratorFactoryprop - 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 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 type
public static final SerIterable multiset(Class<?> valueType,
List<Class<?>> valueTypeTypes)
Multiset.
valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
public static final SerIterable sortedMultiset(Class<?> valueType,
List<Class<?>> valueTypeTypes)
SortedMultiset.
valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
public 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 type
public 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 type
public 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 type
public 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 type
public 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 type
public 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 type
public 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 type
public static final SerIterable immutableList(Class<?> valueType,
List<Class<?>> valueTypeTypes)
ImmutableList.
valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
public static final SerIterable immutableSortedSet(Class<?> valueType,
List<Class<?>> valueTypeTypes)
ImmutableSortedSet.
valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value type
public static final SerIterable immutableSet(Class<?> valueType,
List<Class<?>> valueTypeTypes)
ImmutableSet.
valueType - 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 | |||||||||