Constructor and Description |
---|
RawDataImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
copyCell(RawData src,
java.lang.String key)
Copies value for
key existing in src , into this provider; no-op if
src does not contain the key . |
java.lang.String |
copyNonEmptyCell(RawData src,
java.lang.String key)
Copies non-empty value for
key existing in src , into this provider;
no-op if src does not contain the key , or if it contains the
key but the value for that key is empty. |
java.lang.String |
getCell(java.lang.String key)
Returns value for key, null if key does not exist or if
key is null. |
java.util.Map<java.lang.String,java.lang.String> |
getCells()
Returns potentially empty map of key/value pairs.
|
boolean |
hasKey(java.lang.String key)
If true,
key is present. |
java.lang.String |
putCell(java.lang.String key,
java.lang.String value)
Adds the
value for key . |
java.lang.String |
putCellNonEmpty(java.lang.String key,
java.lang.String value)
Adds the
value for key if value is not empty. |
public final java.lang.String putCell(java.lang.String key, java.lang.String value)
RawData
value
for key
.public java.lang.String copyCell(RawData src, java.lang.String key)
RawData
key
existing in src
, into this provider; no-op if
src
does not contain the key
.public java.lang.String copyNonEmptyCell(RawData src, java.lang.String key)
RawData
key
existing in src
, into this provider;
no-op if src
does not contain the key
, or if it contains the
key
but the value for that key is empty.copyNonEmptyCell
in interface RawData
public java.lang.String putCellNonEmpty(java.lang.String key, java.lang.String value)
RawData
value
for key
if value
is not empty.putCellNonEmpty
in interface RawData
key
- non-null, non-empty key.value
- non-null, potentially empty value for the key.public boolean hasKey(java.lang.String key)
RawData
key
is present.public java.util.Map<java.lang.String,java.lang.String> getCells()
RawData
Copyright 2009-2016 Tatjana (Tanja) Kostic