DataTypeCondition

public final class DataTypeCondition<T extends Number, D extends DataType<@NonNull T, @NonNull DataPoint<@NonNull T>>>


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

Summary

Public constructors

<T extends Number, D extends DataType<@NonNull T, @NonNull DataPoint<@NonNull T>>> DataTypeCondition(
    @NonNull D dataType,
    @NonNull T threshold,
    @NonNull ComparisonType comparisonType
)

Public methods

boolean
equals(Object other)
final @NonNull ComparisonType

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

final @NonNull D

DataType which this condition applies to.

final @NonNull T

The threshold at which point this condition should be met.

int
@NonNull String

Public constructors

DataTypeCondition

public <T extends Number, D extends DataType<@NonNull T, @NonNull DataPoint<@NonNull T>>> DataTypeCondition(
    @NonNull D dataType,
    @NonNull T threshold,
    @NonNull ComparisonType comparisonType
)

Public methods

equals

public boolean equals(Object other)

getComparisonType

Added in 1.0.0
public final @NonNull ComparisonType getComparisonType()

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

getDataType

Added in 1.0.0
public final @NonNullgetDataType()

DataType which this condition applies to.

getThreshold

Added in 1.0.0
public final @NonNullgetThreshold()

The threshold at which point this condition should be met.

hashCode

public int hashCode()

toString

public @NonNull String toString()