public class PropertiesTuple extends Object implements uk.gov.gchq.koryphe.tuple.Tuple<String>, Serializable
PropertiesTuple
implements Tuple
wrapping a
Properties
and providing a getter and setter for the element's property values.
This class allows Properties to be used with the function module whilst minimising dependencies.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES |
Constructor and Description |
---|
PropertiesTuple() |
PropertiesTuple(Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(String propertyName) |
Properties |
getProperties() |
int |
hashCode() |
void |
put(String propertyName,
Object value) |
void |
setProperties(Properties properties) |
String |
toString() |
Iterable<Object> |
values() |
forEach, spliterator
public static final String PROPERTIES
public PropertiesTuple()
public PropertiesTuple(Properties properties)
public Object get(String propertyName)
get
in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
public Iterable<Object> values()
values
in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
public void put(String propertyName, Object value)
put
in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
public Properties getProperties()
public void setProperties(Properties properties)
Copyright © 2022. All rights reserved.