Class 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
    A 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertiesTuple

        public PropertiesTuple()
      • PropertiesTuple

        public PropertiesTuple​(Properties properties)
    • Method Detail

      • get

        public Object get​(String propertyName)
        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 propertyName,
                        Object value)
        Specified by:
        put in interface uk.gov.gchq.koryphe.tuple.Tuple<String>
      • getProperties

        public Properties getProperties()
      • setProperties

        public void setProperties​(Properties properties)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object