Class PropertiesTuple
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.element.function.PropertiesTuple
-
- All Implemented Interfaces:
Serializable
,Iterable<Object>
,uk.gov.gchq.koryphe.tuple.Tuple<String>
public class PropertiesTuple extends Object implements uk.gov.gchq.koryphe.tuple.Tuple<String>, Serializable
APropertiesTuple
implementsTuple
wrapping aProperties
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTIES
-
Constructor Summary
Constructors Constructor Description PropertiesTuple()
PropertiesTuple(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
PROPERTIES
public static final String PROPERTIES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertiesTuple
public PropertiesTuple()
-
PropertiesTuple
public PropertiesTuple(Properties properties)
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
values
public Iterable<Object> values()
- Specified by:
values
in interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
put
public void put(String propertyName, Object value)
- Specified by:
put
in interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
getProperties
public Properties getProperties()
-
setProperties
public void setProperties(Properties properties)
-
-