Package org.robolectric.res.android
Enum ResourceString.Type
- java.lang.Object
-
- java.lang.Enum<ResourceString.Type>
-
- org.robolectric.res.android.ResourceString.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceString.Type>
- Enclosing class:
- ResourceString
public static enum ResourceString.Type extends Enum<ResourceString.Type>
Type ofResourceString
to encode / decode.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Charset
charset()
CharsetDecoder
decoder()
static ResourceString.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceString.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UTF8
public static final ResourceString.Type UTF8
-
CESU8
public static final ResourceString.Type CESU8
-
UTF16
public static final ResourceString.Type UTF16
-
-
Method Detail
-
values
public static ResourceString.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceString.Type c : ResourceString.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceString.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
charset
public Charset charset()
-
decoder
public CharsetDecoder decoder()
-
-