@NotThreadSafe public abstract class DataRow<F,T> extends AbstractMap<String,T> implements Row<T>
Row based on a TObject result set, that transforms values
on the fly.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,T>> |
entrySet() |
static <T> DataRow<Set<TObject>,Set<T>> |
multiValued(Map<String,Set<TObject>> data)
Convert the
TObject values in the results to their java
counterparts and prettify the result set
lazily. |
static <T> DataRow<TObject,T> |
singleValued(Map<String,TObject> data)
Return a
DataRow that contains single value cells
TObject values that are converted to their Java equivalents. |
String |
toString() |
protected abstract T |
transform(F value)
Transform the
value to the appropriate type. |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic static <T> DataRow<Set<TObject>,Set<T>> multiValued(Map<String,Set<TObject>> data)
TObject values in the results to their java
counterparts and prettify the result set
lazily.results - results in the form of a Map whose
toString() method does pretty printingpublic static <T> DataRow<TObject,T> singleValued(Map<String,TObject> data)
DataRow that contains single value cells
TObject values that are converted to their Java equivalents.data - DataTablepublic String toString()
toString in class AbstractMap<String,T>