public class Row extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,sirius.kernel.commons.Tuple<String,Object>> |
fields |
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getFields()
Deprecated.
use
getFieldsList() which honors the field names in terms of upper- and lowercase. |
Collection<sirius.kernel.commons.Tuple<String,Object>> |
getFieldsList()
Returns all stored fields as map.
|
List<Row> |
getSublist(Object key)
Returns a sub list which was stored for a given key.
|
sirius.kernel.commons.Value |
getValue(Object key)
Returns the value associated with the given key.
|
boolean |
hasValue(String key)
Determines if a value for a given key is present.
|
void |
setValue(String key,
Object value)
Stores a value for the given key.
|
String |
toString() |
@Nonnull public Collection<sirius.kernel.commons.Tuple<String,Object>> getFieldsList()
@Nonnull @Deprecated public Map<String,Object> getFields()
getFieldsList()
which honors the field names in terms of upper- and lowercase.public boolean hasValue(@Nonnull String key)
key
- the key to check for@Nonnull public sirius.kernel.commons.Value getValue(@Nonnull Object key)
key
- the name of the field to retrieveValue
IllegalArgumentException
- if an unknown column key is requested@Nonnull public List<Row> getSublist(@Nonnull Object key)
It is assumed that the object associated with the given key is a List<Row>
.
key
- the name of the field to retrieveClassCastException
- if the stored value isn't a list. null is handled gracefullypublic void setValue(@Nonnull String key, Object value)
Can be used to add computed values for further processing.
key
- the key to bind the value tovalue
- the value to be storedCopyright © 2018. All rights reserved.