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

net.java.ao.it.model.Deleted Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
package net.java.ao.it.model;

public enum Deleted {
    TRUE(true, "Y"),
    FALSE(false, "N");

    private final boolean b;
    private final String s;

    private Deleted(boolean b, String s) {
        this.b = b;
        this.s = s;
    }

    public boolean asBoolean() {
        return b;
    }

    public String asString() {
        return s;
    }

    public static Deleted fromString(String s) {
        return TRUE.s.equals(s) ? TRUE : FALSE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy