DataTypeCondition


class DataTypeCondition<T : Number, D : DataType<T, DataPoint<T>>>


A condition which is considered met when a data type value passes a defined threshold.

Summary

Public constructors

<T : Number, D : DataType<T, DataPoint<T>>> DataTypeCondition(
    dataType: D,
    threshold: T,
    comparisonType: ComparisonType
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

ComparisonType

The comparison type to use when comparing the threshold against the current value.

D

DataType which this condition applies to.

T

The threshold at which point this condition should be met.

Public constructors

DataTypeCondition

<T : Number, D : DataType<T, DataPoint<T>>> DataTypeCondition(
    dataType: D,
    threshold: T,
    comparisonType: ComparisonType
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

comparisonType

Added in 1.0.0
val comparisonTypeComparisonType

The comparison type to use when comparing the threshold against the current value.

dataType

Added in 1.0.0
val dataType: D

DataType which this condition applies to.

threshold

Added in 1.0.0
val threshold: T

The threshold at which point this condition should be met.