Class ElementTuple

  • All Implemented Interfaces:
    Iterable<Object>, uk.gov.gchq.koryphe.tuple.Tuple<String>

    public class ElementTuple
    extends Object
    implements uk.gov.gchq.koryphe.tuple.Tuple<String>
    An ElementTuple implements Tuple wrapping an Element 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.
    • 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 interface uk.gov.gchq.koryphe.tuple.Tuple<String>
      • values

        public Iterable<Object> values()
        Specified by:
        values in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
      • put

        public void put​(String reference,
                        Object value)
        Specified by:
        put in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object