@StableMinor(version="12.0", sinceVersion="4.0") public class TabularData extends Object implements ISourceData, Cloneable
Constructor and Description |
---|
TabularData()
Creates a new tabular data without any source association.
|
TabularData(Source source)
Creates a new tabular data associated with the given source.
|
Modifier and Type | Method and Description |
---|---|
ISourceData |
addRow()
Adds a row in this tabular data.
|
void |
clear()
Removes all rows in this tabular data.
|
TabularData |
clone() |
boolean |
containsKey(Object key)
Delegates the call to the first row, or returns false if there is no first row.
|
boolean |
containsValue(Object value)
Delegates the call to the first row, or returns false if there is no first row.
|
Set<Map.Entry<String,Object>> |
entrySet()
Delegates the call to the first row, or returns an empty set if there is no first row.
|
Object |
get(Object key)
Delegates the call to the first row, or returns null if there is no first row.
|
<T> T |
get(Object key,
Class<T> expectedClass)
Delegates the call to the first row, or returns null if there is no first row.
|
List<ISourceData> |
getRows()
Returns the rows in this tabular data.
|
int |
getTotalRows() |
boolean |
isEmpty()
Returns true if this tabular data has no row, false otherwise.
|
Set<String> |
keySet()
Delegates the call to the first row, or returns an empty set if there is no first row.
|
Object |
put(String key,
Object value)
Delegates the call to the first row.
|
void |
putAll(Map<? extends String,? extends Object> t)
Delegates the call to the first row.
|
Object |
remove(Object key)
Delegates the call to the first row or returns null if there is no row.
|
void |
setTotalRows(int totalRows) |
int |
size()
Returns the number of rows in this tabular data.
|
void |
sort(Comparator<ISourceData> comparator) |
String |
toString() |
Collection<Object> |
values()
Delegates the call to the first row, or returns an empty set if there is no first row.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public TabularData()
public TabularData(Source source)
source
- the source.public List<ISourceData> getRows()
addRow()
instead of calling directly the list
add method.public ISourceData addRow()
public int getTotalRows()
public void setTotalRows(int totalRows)
public void sort(Comparator<ISourceData> comparator)
public <T> T get(Object key, Class<T> expectedClass)
get
in interface ISourceData
T
- the expected class.key
- the data entry key.expectedClass
- the expected class.public void clear()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public Set<Map.Entry<String,Object>> entrySet()
public Object get(Object key)
public boolean isEmpty()
public Set<String> keySet()
public Object put(String key, Object value)
public void putAll(Map<? extends String,? extends Object> t)
public Object remove(Object key)
public int size()
public Collection<Object> values()
public TabularData clone()
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.