Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors as enum #9

Open
fvasco opened this issue Oct 22, 2018 · 1 comment
Open

Colors as enum #9

fvasco opened this issue Oct 22, 2018 · 1 comment

Comments

@fvasco
Copy link

fvasco commented Oct 22, 2018

Consider to replace Colors class with a proper enum

public enum Color {
    BLACK(144),
    WHITE(5),
    RED(28),
    CYAN(159),
    PURPLE(156),
    GREEN(30),
    BLUE(31),
    YELLOW(158),
    ORANGE(129),
    BROWN(149),
    LIGHT_RED(150),
    GREY1(151),
    GREY2(152),
    LIGHT_GREEN(153),
    LIGHT_BLUE(154),
    GREY3(155);

    public final int code;

    Color(final int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
@fvasco
Copy link
Author

fvasco commented Oct 22, 2018

Same consideration for Keys class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant