public class DataElement extends BaseBean implements Comparable<DataElement>
Constructor and Description |
---|
DataElement()
Default Constructor
|
DataElement(String dataKey,
T dataValue)
Parameterized constructor
|
DataElement(String dataKey,
T dataValue,
String type)
Parameterized constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DataElement obj) |
String |
getDataKey()
Returns the key in the key/value pair
|
Object |
getDataValue()
Returns the value in the key/value pair
|
org.apache.commons.lang3.tuple.ImmutablePair<String,Object> |
getKeyValuePair() |
String |
getLogString() |
String |
getType()
Returns the value's data type - int, double, string, etc.
|
void |
setKeyValuePair(org.apache.commons.lang3.tuple.ImmutablePair<String,Object> keyValuePair) |
void |
setType(String type) |
public DataElement()
public DataElement(String dataKey, T dataValue)
T
- Type of dataValuedataKey
- the key in the key/value pair of the data elementdataValue
- the value in the key/value pair of the data elementpublic DataElement(String dataKey, T dataValue, String type)
T
- Type of dataValuedataKey
- the key in the key/value pair of the data elementdataValue
- the value in the key/value pair of the data elementtype
- the value's ElementDataTypepublic org.apache.commons.lang3.tuple.ImmutablePair<String,Object> getKeyValuePair()
public void setKeyValuePair(org.apache.commons.lang3.tuple.ImmutablePair<String,Object> keyValuePair)
public String getDataKey()
public Object getDataValue()
public String getType()
public void setType(String type)
public String getLogString()
public int compareTo(DataElement obj)
compareTo
in interface Comparable<DataElement>
Copyright © 2018. All rights reserved.