Package org.box2d.proto
Enum Box2D.PbShapeType
- java.lang.Object
-
- java.lang.Enum<Box2D.PbShapeType>
-
- org.box2d.proto.Box2D.PbShapeType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Box2D.PbShapeType>
- Enclosing class:
- Box2D
public static enum Box2D.PbShapeType extends java.lang.Enum<Box2D.PbShapeType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumbox2d.PbShapeType
-
-
Field Summary
Fields Modifier and Type Field Description static intCHAIN_VALUECHAIN = 4;static intCIRCLE_VALUECIRCLE = 1;static intEDGE_VALUEEDGE = 3;private static com.google.protobuf.Internal.EnumLiteMap<Box2D.PbShapeType>internalValueMapstatic intPOLYGON_VALUEPOLYGON = 2;private intvalueprivate static Box2D.PbShapeType[]VALUES
-
Constructor Summary
Constructors Modifier Constructor Description privatePbShapeType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Box2D.PbShapeTypeforNumber(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<Box2D.PbShapeType>internalGetValueMap()static Box2D.PbShapeTypevalueOf(int value)Deprecated.static Box2D.PbShapeTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Box2D.PbShapeTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Box2D.PbShapeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CIRCLE
public static final Box2D.PbShapeType CIRCLE
CIRCLE = 1;
-
POLYGON
public static final Box2D.PbShapeType POLYGON
POLYGON = 2;
-
EDGE
public static final Box2D.PbShapeType EDGE
EDGE = 3;
-
CHAIN
public static final Box2D.PbShapeType CHAIN
CHAIN = 4;
-
-
Field Detail
-
CIRCLE_VALUE
public static final int CIRCLE_VALUE
CIRCLE = 1;- See Also:
- Constant Field Values
-
POLYGON_VALUE
public static final int POLYGON_VALUE
POLYGON = 2;- See Also:
- Constant Field Values
-
EDGE_VALUE
public static final int EDGE_VALUE
EDGE = 3;- See Also:
- Constant Field Values
-
CHAIN_VALUE
public static final int CHAIN_VALUE
CHAIN = 4;- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Box2D.PbShapeType> internalValueMap
-
VALUES
private static final Box2D.PbShapeType[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static Box2D.PbShapeType[] 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 (Box2D.PbShapeType c : Box2D.PbShapeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Box2D.PbShapeType 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 Box2D.PbShapeType 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 Box2D.PbShapeType 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<Box2D.PbShapeType> 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 Box2D.PbShapeType 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
-
-