Web-based responsive document annotation tool
activeannoservice / document.annotation / 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.
| 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) |
| Name | Summary |
|---|---|
| probability | val probability: Double? |
| value | val value: Any |
| 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 |