New Response

« Return to the blog entry

You are replying to:

  1. It's entirely possible I've misplaced half my brain today, so bear with me.

    It looks to me like you're using an enum as an object / class. My (perhaps limited) understanding of the reasons for and uses of enums were limited to a list (enumeration) of related bits of information.


    private enum Connection

    int port = 80;

    int ssl = 443;

    String domain = "codestore.net";

    String uri = "";

    end enum

    Thus providing a convenient container and nothing more. So it's interesting to me that your enum has methods. I suppose there's nothing saying they can't but it seems then an odd choice of pattern over use of a class.

Your Comments