io.windmill.core.Status Maven / Gradle / Ivy
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