|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<EditorDataType>
kawigi.language.EditorDataType
public enum EditorDataType
This enum represents all the data types supported by TopCoder as input or output types. Technically, CharacterArray probably won't be used.
| Enum Constant Summary | |
|---|---|
Character
char type. |
|
CharacterArray
char[] or vector |
|
Double
double type. |
|
DoubleArray
double[] or vector |
|
Integer
int type. |
|
IntegerArray
int[] or vector |
|
Long
long (or long long) type. |
|
LongArray
long[] or vector |
|
String
String type. |
|
StringArray
String[] or vector |
|
| Method Summary | |
|---|---|
EditorDataType |
getPrimitiveType()
Returns the type of elements of this type if this is an array type. |
boolean |
isArrayType()
Returns true if this type represents an array type. |
boolean |
isType(EditorDataType type)
Returns true if type is the same as this type, or if either this type or the given type represents an array/vector of the other. |
static EditorDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EditorDataType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EditorDataType String
public static final EditorDataType Integer
public static final EditorDataType Double
public static final EditorDataType Long
public static final EditorDataType Character
public static final EditorDataType StringArray
public static final EditorDataType IntegerArray
public static final EditorDataType DoubleArray
public static final EditorDataType LongArray
public static final EditorDataType CharacterArray
| Method Detail |
|---|
public static final EditorDataType[] values()
for(EditorDataType c : EditorDataType.values())
System.out.println(c);
public static EditorDataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic EditorDataType getPrimitiveType()
public boolean isArrayType()
public boolean isType(EditorDataType type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||