Class GenericMetric

java.lang.Object
org.alfresco.search.model.GenericMetric

@Validated public class GenericMetric extends Object
A metric used in faceting
  • Constructor Details

    • GenericMetric

      public GenericMetric()
  • Method Details

    • type

      public GenericMetric type(String type)
    • getType

      public String getType()
      The type of metric, e.g. count
      Returns:
      type
    • setType

      public void setType(String type)
    • value

      public GenericMetric value(Object value)
    • getValue

      public Object getValue()
      The metric value, e.g. {\"count\": 34}
      Returns:
      value
    • setValue

      public void setValue(Object value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object