Class AnnotationElementDiscrete
- java.lang.Object
-
- org.processmining.variantfinder.models.annotatedtransitionsystems.impl.AnnotationElementDiscrete
-
- All Implemented Interfaces:
AnnotationElement<java.lang.Long>
public class AnnotationElementDiscrete extends java.lang.Object implements AnnotationElement<java.lang.Long>
Discrete values can be repeated, so we also store the cardinality. In the worst case, we use double the space of a list of longs- Author:
- abolt
-
-
Constructor Summary
Constructors Constructor Description AnnotationElementDiscrete(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(java.lang.Long newElement)java.util.List<java.lang.Long>getDistinctValues()java.lang.StringgetName()java.util.List<java.lang.Long>getValues()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceAnnotationElement<java.lang.Long>
-
addValue
public void addValue(java.lang.Long newElement)
- Specified by:
addValuein interfaceAnnotationElement<java.lang.Long>
-
getValues
public java.util.List<java.lang.Long> getValues()
- Specified by:
getValuesin interfaceAnnotationElement<java.lang.Long>
-
getDistinctValues
public java.util.List<java.lang.Long> getDistinctValues()
- Specified by:
getDistinctValuesin interfaceAnnotationElement<java.lang.Long>
-
-