Class Tags

  • All Implemented Interfaces:
    java.io.Serializable

    public class Tags
    extends java.lang.Object
    implements java.io.Serializable
    Class representing multiple values of a given key.
    Since:
    15376
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key  
      private static long serialVersionUID  
      private java.util.Set<java.lang.String> values  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tags​(java.lang.String key, java.util.Set<java.lang.String> values)
      Constructs a new Tags.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getKey()
      Returns the key.
      java.util.Set<java.lang.String> getValues()
      Returns the values.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Tags

        public Tags​(java.lang.String key,
                    java.util.Set<java.lang.String> values)
        Constructs a new Tags.
        Parameters:
        key - the key. Must not be null
        values - the values. Must not be null
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns the key.
        Returns:
        the key
      • getValues

        public java.util.Set<java.lang.String> getValues()
        Returns the values.
        Returns:
        the values
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object