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

package com.hypixel.hytale.procedurallib.condition;

import javax.annotation.Nonnull;

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