Package com.alfresco.content.models
Class GenericMetric
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class GenericMetricA metric used in faceting
-
-
Field Summary
Fields Modifier and Type Field Description private Stringtypeprivate GenericValuevalue
-
Constructor Summary
Constructors Constructor Description GenericMetric(String type, GenericValue value)
-
Method Summary
Modifier and Type Method Description final StringgetType()The type of metric, e.g. final UnitsetType(@Json(name = "type") String type)The type of metric, e.g. final GenericValuegetValue()The metric value, e.g. final UnitsetValue(@Json(name = "value") GenericValue value)The metric value, e.g. -
-
Constructor Detail
-
GenericMetric
GenericMetric(String type, GenericValue value)
-
-
Method Detail
-
getValue
final GenericValue getValue()
The metric value, e.g. {\"count\": 34}
-
setValue
final Unit setValue(@Json(name = "value") GenericValue value)
The metric value, e.g. {\"count\": 34}
-
-
-
-