Package com.android.aapt
Enum Resources.Plural.Arity
- java.lang.Object
-
- java.lang.Enum<Resources.Plural.Arity>
-
- com.android.aapt.Resources.Plural.Arity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Resources.Plural.Arity>
- Enclosing class:
- Resources.Plural
public static enum Resources.Plural.Arity extends java.lang.Enum<Resources.Plural.Arity> implements com.google.protobuf.ProtocolMessageEnum
The arity of the plural.
Protobuf enumaapt.pb.Plural.Arity
-
-
Field Summary
Fields Modifier and Type Field Description static intFEW_VALUEFEW = 3;static intMANY_VALUEMANY = 4;static intONE_VALUEONE = 1;static intOTHER_VALUEOTHER = 5;static intTWO_VALUETWO = 2;static intZERO_VALUEZERO = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Resources.Plural.ArityforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Resources.Plural.Arity>internalGetValueMap()static Resources.Plural.ArityvalueOf(int value)Deprecated.static Resources.Plural.ArityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Resources.Plural.ArityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Resources.Plural.Arity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO
public static final Resources.Plural.Arity ZERO
ZERO = 0;
-
ONE
public static final Resources.Plural.Arity ONE
ONE = 1;
-
TWO
public static final Resources.Plural.Arity TWO
TWO = 2;
-
FEW
public static final Resources.Plural.Arity FEW
FEW = 3;
-
MANY
public static final Resources.Plural.Arity MANY
MANY = 4;
-
OTHER
public static final Resources.Plural.Arity OTHER
OTHER = 5;
-
UNRECOGNIZED
public static final Resources.Plural.Arity UNRECOGNIZED
-
-
Field Detail
-
ZERO_VALUE
public static final int ZERO_VALUE
ZERO = 0;- See Also:
- Constant Field Values
-
ONE_VALUE
public static final int ONE_VALUE
ONE = 1;- See Also:
- Constant Field Values
-
TWO_VALUE
public static final int TWO_VALUE
TWO = 2;- See Also:
- Constant Field Values
-
FEW_VALUE
public static final int FEW_VALUE
FEW = 3;- See Also:
- Constant Field Values
-
MANY_VALUE
public static final int MANY_VALUE
MANY = 4;- See Also:
- Constant Field Values
-
OTHER_VALUE
public static final int OTHER_VALUE
OTHER = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Resources.Plural.Arity[] 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 (Resources.Plural.Arity c : Resources.Plural.Arity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Resources.Plural.Arity valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Resources.Plural.Arity valueOf(int value)
Deprecated.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:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Resources.Plural.Arity forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Resources.Plural.Arity> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Resources.Plural.Arity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-