// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.procedurallib.condition;

import javax.annotation.Nonnull;

public class DoubleThresholdCondition implements IDoubleCondition
{
    protected final IDoubleThreshold threshold;
    
    public DoubleThresholdCondition(final IDoubleThreshold threshold) {
        this.threshold = threshold;
    }
    
    @Override
    public boolean eval(final double value) {
        return this.threshold.eval(value);
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "DoubleThresholdCondition{threshold=" + String.valueOf(this.threshold);
    }
}
