Search:

Type: Posts; User: Doctor X

Search: Search took 0.34 seconds.

  1. Replies
    2
    Views
    804

    [SOLVED] Re: Alternative to Enum

    Thanks for the answer, I have read that thread before but it's not what I wanted to do.
    I ended up changing the Statement class to:


    public abstract class Statement {

    private Object[]...
  2. Replies
    2
    Views
    804

    [SOLVED] Alternative to Enum

    Okay, on the common library I work on I have a database system, with implementations of MySQL and SQLite.
    Because I like reusing code I use PreparedStatements like this.
    I got the Statement enum:
    ...
  3. Replies
    0
    Views
    219

    Annotation on enum constant.

    I want to add annotations to some of the constants like in the code below.

    public enum Material {
    @NonBuyable
    @NonSellable
    AIR(0),

    Then I'm trying to check if it is present with...
Results 1 to 3 of 3