Skip to content

Instantly share code, notes, and snippets.

@cocoatomo
Created March 28, 2011 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoatomo/890831 to your computer and use it in GitHub Desktop.
Save cocoatomo/890831 to your computer and use it in GitHub Desktop.
enum DataType {
// primitive
BOOLEAN(true),
CHARACTER(true),
INTEGER(true),
DECIMAL(true),
STRING(true),
// non-primitive
TYPE_HASH(false),
TYPE_LIST(false);
private boolean isPrimitive;
public DataType(boolean isPrimitive) {
this.isPrimitive = isPrimitive;
}
public boolean isPrimitive() {
return isPrimitive;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment