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, Serializable, Comparable<Box2D.PbShapeType>
- Enclosing class:
- Box2D
public static enum Box2D.PbShapeType
- extends Enum<Box2D.PbShapeType>
- implements com.google.protobuf.ProtocolMessageEnum
CIRCLE
public static final Box2D.PbShapeType CIRCLE
POLYGON
public static final Box2D.PbShapeType POLYGON
EDGE
public static final Box2D.PbShapeType EDGE
CHAIN
public static final Box2D.PbShapeType CHAIN
CIRCLE_VALUE
public static final int CIRCLE_VALUE
- See Also:
- Constant Field Values
POLYGON_VALUE
public static final int POLYGON_VALUE
- See Also:
- Constant Field Values
EDGE_VALUE
public static final int EDGE_VALUE
- See Also:
- Constant Field Values
CHAIN_VALUE
public static final int CHAIN_VALUE
- See Also:
- Constant Field Values
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(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 name
NullPointerException
- if the argument is null
getNumber
public final int getNumber()
- Specified by:
getNumber
in interface com.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
valueOf
public static Box2D.PbShapeType valueOf(int 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 interface com.google.protobuf.ProtocolMessageEnum
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interface com.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)
Copyright © 2013. All Rights Reserved.