All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.windmill.core.Status Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
package io.windmill.core;

public class Status
{
    public enum Flag
    {
        STOP, CONTINUE
    }

    protected final Flag flag;
    protected final T value;

    private Status(Flag flag, T value)
    {
        this.flag = flag;
        this.value = value;
    }

    public Flag getFlag()
    {
        return flag;
    }

    public T getValue()
    {
        return value;
    }

    public static  Status of(Flag flag)
    {
        return new Status<>(flag, null);
    }

    public static  Status of(Flag flag, T value)
    {
        return new Status<>(flag, value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy