public enum OptionTypes extends Enum<OptionTypes> implements OptionType
Steam Web API SteaMethods need to provide options (or parameters)
when called, and these options have types. This enum represents a list of all allowed option types.
| Enum Constant and Description |
|---|
BOOL
Represents a BOOL (boolean) in the Steam Web API and is also internally represented by a
Boolean. |
FLOAT
Represents a FLOAT in the Steam Web API and is also internally represented by a
Float. |
INT_32
Represents an INT_32 (signed 32bit integer) in the Steam Web API and is internally represented by an
Integer. |
INT_64
Represents an INT_64 (signed 64bit integer) in the Steam Web API, but is internally represented by a
Long
since Java doesn't have directly 64bit integers, they are called long internally. |
RAW_BINARY
Represents RAW BINARY in the Steam Web API and is internally represented by a
Byte[]. |
STRING
Represents a STRING (String) in the Steam Web API and is internally represented by a
String. |
UINT_32
Represents an UINT_32 (unsigned 32bit integer) in the Steam Web API, but is internally represented by a
Long
since Java does not support unsigned-integers. |
UINT_64
Represents an UINT_64 (unsigned 64bit integer) in the Steam Web API, but is internally represented by a
Long
since Java does not support unsigned-integers. |
| Modifier and Type | Method and Description |
|---|---|
static OptionTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptionTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcheck, getName, parsepublic static final OptionTypes STRING
Represents a STRING (String) in the Steam Web API and is internally represented by a String.
public static final OptionTypes UINT_32
Represents an UINT_32 (unsigned 32bit integer) in the Steam Web API, but is internally represented by a Long
since Java does not support unsigned-integers. To still keep the "unsigned" property of unsigned ints, the method
OptionType.parse(Object) calls Math.abs(long) to only provide positive values.
public static final OptionTypes UINT_64
Represents an UINT_64 (unsigned 64bit integer) in the Steam Web API, but is internally represented by a Long
since Java does not support unsigned-integers. To still keep the "unsigned" property of unsigned ints, the method
OptionType.parse(Object) calls Math.abs(long) to only provide positive values.
public static final OptionTypes INT_32
Represents an INT_32 (signed 32bit integer) in the Steam Web API and is internally represented by an Integer.
public static final OptionTypes INT_64
Represents an INT_64 (signed 64bit integer) in the Steam Web API, but is internally represented by a Long
since Java doesn't have directly 64bit integers, they are called long internally.
public static final OptionTypes FLOAT
Represents a FLOAT in the Steam Web API and is also internally represented by a Float.
public static final OptionTypes BOOL
Represents a BOOL (boolean) in the Steam Web API and is also internally represented by a Boolean.
public static final OptionTypes RAW_BINARY
Represents RAW BINARY in the Steam Web API and is internally represented by a Byte[].
public static OptionTypes[] values()
for (OptionTypes c : OptionTypes.values()) System.out.println(c);
public static OptionTypes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017. All rights reserved.