Class MetadataRest


  • public class MetadataRest
    extends Object
    Rest representation of a map of metadata keys to ordered lists of values.
    • Constructor Detail

      • MetadataRest

        public MetadataRest()
    • Method Detail

      • put

        public MetadataRest put​(String key,
                                MetadataValueRest... values)
        Sets the metadata values for a given key.
        Parameters:
        key - the key.
        values - the values. The values will be ordered according to their place value, if nonnegative. Values that are negative (the default is -1) are assumed to be non-explicitly set and will will be ordered at the end of any explicitly ordered values, in the order they are passed to this method.
        Returns:
        this instance, to support chaining calls for easy initialization.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object