public abstract class SerIterable extends Object
This is a plugin point that can handle Guava collections.
| Constructor and Description |
|---|
SerIterable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public abstract SerIterator iterator()
public void dimensions(int[] dimensions)
dimensions - the dimension, 0 for row, 1 for columnpublic 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()
Copyright © 2007–2017 Joda.org. All rights reserved.