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_VOLUMECONSTANT_VOLUME = 11;DISTANCEDISTANCE = 1;FRICTIONFRICTION = 9;GEARGEAR = 6;LINELINE = 12;MOUSEMOUSE = 5;PRISMATICPRISMATIC = 3;PULLEYPULLEY = 4;REVOLUTEREVOLUTE = 2;ROPEROPE = 10;WELDWELD = 8;WHEELWHEEL = 7;
-
Field Summary
Fields Modifier and Type Field Description static intCONSTANT_VOLUME_VALUECONSTANT_VOLUME = 11;static intDISTANCE_VALUEDISTANCE = 1;static intFRICTION_VALUEFRICTION = 9;static intGEAR_VALUEGEAR = 6;private static com.google.protobuf.Internal.EnumLiteMap<Box2D.PbJointType>internalValueMapstatic intLINE_VALUELINE = 12;static intMOUSE_VALUEMOUSE = 5;static intPRISMATIC_VALUEPRISMATIC = 3;static intPULLEY_VALUEPULLEY = 4;static intREVOLUTE_VALUEREVOLUTE = 2;static intROPE_VALUEROPE = 10;private intvalueprivate static Box2D.PbJointType[]VALUESstatic intWELD_VALUEWELD = 8;static intWHEEL_VALUEWHEEL = 7;
-
Constructor Summary
Constructors Modifier Constructor Description privatePbJointType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Box2D.PbJointTypeforNumber(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.PbJointType>internalGetValueMap()static Box2D.PbJointTypevalueOf(int value)Deprecated.static Box2D.PbJointTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Box2D.PbJointTypevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
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.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
-
-