Class Filter

java.lang.Object
org.gcube.accounting.analytics.Filter
All Implemented Interfaces:
Comparable<Filter>
Direct Known Subclasses:
NumberedFilter

public class Filter extends Object implements Comparable<Filter>
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

  • Constructor Details

    • Filter

      public Filter(String key, String value)
      Parameters:
      key - the key to filter
      value - the value fo the key to filter
  • Method Details

    • getKey

      public String getKey()
      Returns:
      the key
    • setKey

      public void setKey(String key)
      Parameters:
      key - the key to set
    • getValue

      public String getValue()
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Filter filter)
      Specified by:
      compareTo in interface Comparable<Filter>
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object