ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / document.annotation / ValueToProbability

ValueToProbability

data class ValueToProbability

In some contexts, a value might have an associated probability. This is the case when annotations are imported or generated with a probability of how likely this annotation has the value.

Constructors

Name Summary
<init> In some contexts, a value might have an associated probability. This is the case when annotations are imported or generated with a probability of how likely this annotation has the value.ValueToProbability(value: Any, probability: Double? = null)

Properties

Name Summary
probability val probability: Double?
value val value: Any

Functions

Name Summary
equals For ValueToProbability, only the value is relevant for equals comparisons, because the probability might be missing and is only in this model for generated annotations anyway.fun equals(other: Any?): Boolean
hashCode The hashCode of ValueToProbability is equal the hashCode of value as this is really only a wrapper class for itfun hashCode(): Int