DataTypeCondition

public data final class DataTypeCondition


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

Summary

Public constructors

DataTypeCondition(
    @NonNull DataType dataType,
    @NonNull Value threshold,
    @NonNull ComparisonType comparisonType
)

Public methods

int
final boolean

Checks whether or not the condition is satisfied by a given DataPoint.

final boolean

Checks whether or not the value of the condition is satisfied by a given Value.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

comparisonType

@NonNull
public final @NonNull ComparisonType comparisonType

dataType

@NonNull
public final @NonNull DataType dataType

threshold

@NonNull
public final @NonNull Value threshold

Public constructors

DataTypeCondition

public final DataTypeCondition(
    @NonNull DataType dataType,
    @NonNull Value threshold,
    @NonNull ComparisonType comparisonType
)

Public methods

describeContents

@NonNull
public int describeContents()

isSatisfied

@NonNull
public final boolean isSatisfied(@NonNull DataPoint dataPoint)

Checks whether or not the condition is satisfied by a given DataPoint.

isThresholdSatisfied

@NonNull
public final boolean isThresholdSatisfied(@NonNull Value value)

Checks whether or not the value of the condition is satisfied by a given Value.

writeToParcel

@NonNull
public void writeToParcel(@NonNull Parcel dest, int flags)