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 int
CHAIN_VALUE
CHAIN = 4;
static int
CIRCLE_VALUE
CIRCLE = 1;
static int
EDGE_VALUE
EDGE = 3;
private static com.google.protobuf.Internal.EnumLiteMap<Box2D.PbShapeType>
internalValueMap
static int
POLYGON_VALUE
POLYGON = 2;
private int
value
private static Box2D.PbShapeType[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
PbShapeType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Box2D.PbShapeType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Box2D.PbShapeType>
internalGetValueMap()
static Box2D.PbShapeType
valueOf(int value)
Deprecated.static Box2D.PbShapeType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Box2D.PbShapeType
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in 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
-
-