|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.SerIterable
public abstract class SerIterable
An abstraction over collections, lists, sets and maps.
This is a plugin point that can handle Guava collections.
| Constructor Summary | |
|---|---|
SerIterable()
|
|
| Method Summary | |
|---|---|
abstract void |
add(Object key,
Object column,
Object value,
int count)
Adds an item to the builder. |
abstract Object |
build()
Builds the final collection. |
SerCategory |
category()
Gets the category of iterable. |
Class<?> |
columnType()
Gets the type of the column. |
void |
dimensions(int[] dimensions)
Sets the dimensions of the wrapped collection. |
abstract SerIterator |
iterator()
Obtains an iterator over the data. |
Class<?> |
keyType()
Gets the type of the key. |
abstract Class<?> |
valueType()
Gets the type of the value. |
abstract List<Class<?>> |
valueTypeTypes()
Gets the generic parameters of the value type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerIterable()
| Method Detail |
|---|
public abstract SerIterator iterator()
public void dimensions(int[] dimensions)
dimensions - the dimension, 0 for row, 1 for column
public abstract void add(Object key,
Object column,
Object value,
int count)
key - the key, such as for a map, null if no keycolumn - the column, such as for a table, null if no columnvalue - the value, such as for a map or list value, may be nullcount - the count, such as for a multiset, typically one or greaterpublic abstract Object build()
public SerCategory category()
public Class<?> keyType()
public Class<?> columnType()
public abstract Class<?> valueType()
public abstract List<Class<?>> valueTypeTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||