public enum ReturnType extends java.lang.Enum<ReturnType> implements Type
Enum Constant and Description |
---|
BOOLEAN
Boolean return type
|
DATE
Date return type
|
DOUBLE
Double return type
|
FLOAT
Float return type
|
INTEGER
Integer return type
|
LONG
Long return type
|
STRING
String return type
|
VOID
Void return type
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getTypeClass()
Gets the type class.
|
static ReturnType |
getTypeFor(java.lang.Class<?> typeClass)
Returns the ReturnType based on a typeClass.
|
static ReturnType |
parseReturnType(java.lang.String input)
Parse ReturnType from a string value.
|
java.lang.String |
toKey()
Returns the key of this type as string.
|
java.lang.String |
toString()
Returns the key of this type as string.
|
static ReturnType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReturnType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ReturnType BOOLEAN
public static final ReturnType DATE
public static final ReturnType DOUBLE
public static final ReturnType FLOAT
public static final ReturnType INTEGER
public static final ReturnType LONG
public static final ReturnType STRING
public static final ReturnType VOID
public java.lang.Class<?> getTypeClass()
Type
getTypeClass
in interface Type
public static ReturnType getTypeFor(java.lang.Class<?> typeClass)
typeClass
- Use this typeClass to derive the ReturnTypepublic static ReturnType parseReturnType(java.lang.String input)
input
- Value to use to parse an ReturnType from. You can use the output of toString()
as input.public java.lang.String toKey()
Type
public java.lang.String toString()
toKey()
.toString
in class java.lang.Enum<ReturnType>
public static ReturnType 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 namejava.lang.NullPointerException
- if the argument is nullpublic static ReturnType[] values()
for (ReturnType c : ReturnType.values()) System.out.println(c);
Copyright © 2017 Oracle Corp. All Rights Reserved.