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

package com.hypixel.hytale.procedurallib.condition;

import javax.annotation.Nonnull;

public class DefaultDoubleCondition implements IDoubleCondition
{
    public static final DefaultDoubleCondition DEFAULT_TRUE;
    public static final DefaultDoubleCondition DEFAULT_FALSE;
    protected final boolean result;
    
    public DefaultDoubleCondition(final boolean result) {
        this.result = result;
    }
    
    public boolean getResult() {
        return this.result;
    }
    
    @Override
    public boolean eval(final double value) {
        return this.result;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "DefaultDoubleCondition{result=" + this.result;
    }
    
    static {
        DEFAULT_TRUE = new DefaultDoubleCondition(true);
        DEFAULT_FALSE = new DefaultDoubleCondition(false);
    }
}
