Package org.box2d.proto
Enum Box2D.PbJointType
- java.lang.Object
-
- java.lang.Enum<Box2D.PbJointType>
-
- org.box2d.proto.Box2D.PbJointType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<Box2D.PbJointType>
- Enclosing class:
- Box2D
public static enum Box2D.PbJointType extends java.lang.Enum<Box2D.PbJointType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumbox2d.PbJointType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT_VOLUME
CONSTANT_VOLUME = 11;
DISTANCE
DISTANCE = 1;
FRICTION
FRICTION = 9;
GEAR
GEAR = 6;
LINE
LINE = 12;
MOUSE
MOUSE = 5;
PRISMATIC
PRISMATIC = 3;
PULLEY
PULLEY = 4;
REVOLUTE
REVOLUTE = 2;
ROPE
ROPE = 10;
WELD
WELD = 8;
WHEEL
WHEEL = 7;
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTANT_VOLUME_VALUE
CONSTANT_VOLUME = 11;
static int
DISTANCE_VALUE
DISTANCE = 1;
static int
FRICTION_VALUE
FRICTION = 9;
static int
GEAR_VALUE
GEAR = 6;
private static com.google.protobuf.Internal.EnumLiteMap<Box2D.PbJointType>
internalValueMap
static int
LINE_VALUE
LINE = 12;
static int
MOUSE_VALUE
MOUSE = 5;
static int
PRISMATIC_VALUE
PRISMATIC = 3;
static int
PULLEY_VALUE
PULLEY = 4;
static int
REVOLUTE_VALUE
REVOLUTE = 2;
static int
ROPE_VALUE
ROPE = 10;
private int
value
private static Box2D.PbJointType[]
VALUES
static int
WELD_VALUE
WELD = 8;
static int
WHEEL_VALUE
WHEEL = 7;
-
Constructor Summary
Constructors Modifier Constructor Description private
PbJointType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Box2D.PbJointType
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.PbJointType>
internalGetValueMap()
static Box2D.PbJointType
valueOf(int value)
Deprecated.static Box2D.PbJointType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Box2D.PbJointType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Box2D.PbJointType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISTANCE
public static final Box2D.PbJointType DISTANCE
DISTANCE = 1;
-
REVOLUTE
public static final Box2D.PbJointType REVOLUTE
REVOLUTE = 2;
-
PRISMATIC
public static final Box2D.PbJointType PRISMATIC
PRISMATIC = 3;
-
PULLEY
public static final Box2D.PbJointType PULLEY
PULLEY = 4;
-
MOUSE
public static final Box2D.PbJointType MOUSE
MOUSE = 5;
-
GEAR
public static final Box2D.PbJointType GEAR
GEAR = 6;
-
WHEEL
public static final Box2D.PbJointType WHEEL
WHEEL = 7;
-
WELD
public static final Box2D.PbJointType WELD
WELD = 8;
-
FRICTION
public static final Box2D.PbJointType FRICTION
FRICTION = 9;
-
ROPE
public static final Box2D.PbJointType ROPE
ROPE = 10;
-
CONSTANT_VOLUME
public static final Box2D.PbJointType CONSTANT_VOLUME
CONSTANT_VOLUME = 11;
-
LINE
public static final Box2D.PbJointType LINE
LINE = 12;
-
-
Field Detail
-
DISTANCE_VALUE
public static final int DISTANCE_VALUE
DISTANCE = 1;
- See Also:
- Constant Field Values
-
REVOLUTE_VALUE
public static final int REVOLUTE_VALUE
REVOLUTE = 2;
- See Also:
- Constant Field Values
-
PRISMATIC_VALUE
public static final int PRISMATIC_VALUE
PRISMATIC = 3;
- See Also:
- Constant Field Values
-
PULLEY_VALUE
public static final int PULLEY_VALUE
PULLEY = 4;
- See Also:
- Constant Field Values
-
MOUSE_VALUE
public static final int MOUSE_VALUE
MOUSE = 5;
- See Also:
- Constant Field Values
-
GEAR_VALUE
public static final int GEAR_VALUE
GEAR = 6;
- See Also:
- Constant Field Values
-
WHEEL_VALUE
public static final int WHEEL_VALUE
WHEEL = 7;
- See Also:
- Constant Field Values
-
WELD_VALUE
public static final int WELD_VALUE
WELD = 8;
- See Also:
- Constant Field Values
-
FRICTION_VALUE
public static final int FRICTION_VALUE
FRICTION = 9;
- See Also:
- Constant Field Values
-
ROPE_VALUE
public static final int ROPE_VALUE
ROPE = 10;
- See Also:
- Constant Field Values
-
CONSTANT_VOLUME_VALUE
public static final int CONSTANT_VOLUME_VALUE
CONSTANT_VOLUME = 11;
- See Also:
- Constant Field Values
-
LINE_VALUE
public static final int LINE_VALUE
LINE = 12;
- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Box2D.PbJointType> internalValueMap
-
VALUES
private static final Box2D.PbJointType[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static Box2D.PbJointType[] 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.PbJointType c : Box2D.PbJointType.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.PbJointType 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.PbJointType 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.PbJointType 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.PbJointType> 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.PbJointType 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
-
-