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>
AnElementTuple
implementsTuple
wrapping anElement
and 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 String
ELEMENT
static String
PROPERTIES
-
Constructor Summary
Constructors Constructor Description ElementTuple()
ElementTuple(Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Object
get(String reference)
Element
getElement()
int
hashCode()
void
put(String reference, Object value)
void
setElement(Element element)
String
toString()
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:
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 reference, Object value)
- Specified by:
put
in interfaceuk.gov.gchq.koryphe.tuple.Tuple<String>
-
-