CollectSerIteratorFactorypublic class GuavaSerIteratorFactory extends SerIteratorFactory
EMPTY_VALUE_TYPES, INSTANCE| Constructor | Description |
|---|---|
GuavaSerIteratorFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static SerIterator |
biMap(com.google.common.collect.BiMap<?,?> map,
java.lang.Class<?> declaredType,
java.lang.Class<?> keyType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterator wrapper for
BiMap. |
static SerIterable |
biMap(java.lang.Class<?> keyType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
BiMap. |
SerIterator |
create(java.lang.Object value,
MetaProperty<?> prop,
java.lang.Class<?> beanClass) |
Creates an iterator wrapper for a meta-property value.
|
SerIterator |
createChild(java.lang.Object value,
SerIterator parent) |
Creates an iterator wrapper for a value retrieved from a parent iterator.
|
SerIterable |
createIterable(java.lang.String metaTypeDescription,
JodaBeanSer settings,
java.util.Map<java.lang.String,java.lang.Class<?>> knownTypes) |
Creates an iterator wrapper for a meta-property value.
|
SerIterable |
createIterable(MetaProperty<?> prop,
java.lang.Class<?> beanClass) |
Creates an iterator wrapper for a meta-property value.
|
static SerIterable |
immutableList(java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
ImmutableList. |
static SerIterable |
immutableSet(java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
ImmutableSet. |
static SerIterable |
immutableSortedSet(java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
ImmutableSortedSet. |
static SerIterable |
listMultimap(java.lang.Class<?> keyType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
ListMultimap. |
static SerIterator |
multimap(com.google.common.collect.Multimap<?,?> map,
java.lang.Class<?> declaredType,
java.lang.Class<?> keyType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterator wrapper for
Multimap. |
static SerIterator |
multiset(com.google.common.collect.Multiset<?> multiset,
java.lang.Class<?> declaredType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterator wrapper for
Multiset. |
static SerIterable |
multiset(java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
Multiset. |
static SerIterable |
setMultimap(java.lang.Class<?> keyType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
SetMultimap. |
static SerIterable |
sortedMultiset(java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
SortedMultiset. |
static SerIterator |
table(com.google.common.collect.Table<?,?,?> table,
java.lang.Class<?> declaredType,
java.lang.Class<?> rowType,
java.lang.Class<?> colType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterator wrapper for
Table. |
static SerIterable |
table(java.lang.Class<?> rowType,
java.lang.Class<?> colType,
java.lang.Class<?> valueType,
java.util.List<java.lang.Class<?>> valueTypeTypes) |
Gets an iterable wrapper for
Table. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarray, array, collection, create, createIterable, createIterable, defaultToObjectClass, list, map, map, navigableMap, navigableSet, set, sortedMap, sortedSetpublic SerIterator create(java.lang.Object value, MetaProperty<?> prop, java.lang.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(java.lang.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(java.lang.String metaTypeDescription, JodaBeanSer settings, java.util.Map<java.lang.String,java.lang.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, java.lang.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(java.lang.Class<?> keyType, java.lang.Class<?> valueType, java.util.List<java.lang.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(java.lang.Class<?> valueType, java.util.List<java.lang.Class<?>> valueTypeTypes)
Multiset.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable sortedMultiset(java.lang.Class<?> valueType, java.util.List<java.lang.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, java.lang.Class<?> declaredType, java.lang.Class<?> valueType, java.util.List<java.lang.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(java.lang.Class<?> keyType, java.lang.Class<?> valueType, java.util.List<java.lang.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(java.lang.Class<?> keyType, java.lang.Class<?> valueType, java.util.List<java.lang.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, java.lang.Class<?> declaredType, java.lang.Class<?> keyType, java.lang.Class<?> valueType, java.util.List<java.lang.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(java.lang.Class<?> rowType, java.lang.Class<?> colType, java.lang.Class<?> valueType, java.util.List<java.lang.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, java.lang.Class<?> declaredType, java.lang.Class<?> rowType, java.lang.Class<?> colType, java.lang.Class<?> valueType, java.util.List<java.lang.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, java.lang.Class<?> declaredType, java.lang.Class<?> keyType, java.lang.Class<?> valueType, java.util.List<java.lang.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(java.lang.Class<?> valueType, java.util.List<java.lang.Class<?>> valueTypeTypes)
ImmutableList.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable immutableSortedSet(java.lang.Class<?> valueType, java.util.List<java.lang.Class<?>> valueTypeTypes)
ImmutableSortedSet.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typepublic static final SerIterable immutableSet(java.lang.Class<?> valueType, java.util.List<java.lang.Class<?>> valueTypeTypes)
ImmutableSet.valueType - the value type, not nullvalueTypeTypes - the generic parameters of the value typeCopyright © 2007–2018 Joda.org. All rights reserved.