Package org.alfresco.search.model
Class GenericMetric
- java.lang.Object
-
- org.alfresco.search.model.GenericMetric
-
@Validated public class GenericMetric extends Object
A metric used in faceting
-
-
Constructor Summary
Constructors Constructor Description GenericMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetType()The type of metric, e.g.ObjectgetValue()The metric value, e.g.inthashCode()voidsetType(String type)voidsetValue(Object value)StringtoString()GenericMetrictype(String type)GenericMetricvalue(Object value)
-
-
-
Method Detail
-
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)
-
-