Package uk.gov.gchq.gaffer.data.element
Class ElementTuple
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.element.ElementTuple
-
public class ElementTuple extends Object implements uk.gov.gchq.koryphe.tuple.Tuple<String>
AnElementTupleimplementsTuplewrapping anElementand providing a getter and setter for the element's identifiers and properties. This class allows Elements to be used with the function module whilst minimising dependencies.
-
-
Field Summary
Fields Modifier and Type Field Description static StringELEMENTstatic StringPROPERTIES
-
Constructor Summary
Constructors Constructor Description ElementTuple()ElementTuple(Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(String reference)ElementgetElement()inthashCode()voidput(String reference, Object value)voidsetElement(Element element)StringtoString()Iterable<Object>values()-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
PROPERTIES
public static final String PROPERTIES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementTuple
public ElementTuple()
-
ElementTuple
public ElementTuple(Element element)
-
-
Method Detail
-
getElement
public Element getElement()
-
setElement
public void setElement(Element element)
-
get
public Object get(String reference)
- Specified by:
getin interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
values
public Iterable<Object> values()
- Specified by:
valuesin interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
put
public void put(String reference, Object value)
- Specified by:
putin interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
-