- Object
-
- Capacity
-
@Deprecated public class Capacity extends Object
Deprecated.Deprecated in 4.0.0. Use the appropriate constructors instead.Represents the estimated number of objects of different types.This class is used to initially size internal structures to improve performance. These same structures will grow larger than the given sizes if necessary.
- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BODY_COUNT
Deprecated.The defaultBody
countstatic Capacity
DEFAULT_CAPACITY
Deprecated.The default capacitystatic int
DEFAULT_JOINT_COUNT
Deprecated.The defaultJoint
countstatic int
DEFAULT_LISTENER_COUNT
Deprecated.The defaultListener
count
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Deprecated.int
getBodyCount()
Deprecated.Returns the estimated number of bodies.int
getJointCount()
Deprecated.Returns the estimated number of joints.int
getListenerCount()
Deprecated.Returns the estimated number of listeners.int
hashCode()
Deprecated.String
toString()
Deprecated.
-
-
-
Field Detail
-
DEFAULT_BODY_COUNT
public static final int DEFAULT_BODY_COUNT
Deprecated.The defaultBody
count- See Also:
- Constant Field Values
-
DEFAULT_JOINT_COUNT
public static final int DEFAULT_JOINT_COUNT
Deprecated.The defaultJoint
count- See Also:
- Constant Field Values
-
DEFAULT_LISTENER_COUNT
public static final int DEFAULT_LISTENER_COUNT
Deprecated.The defaultListener
count- See Also:
- Constant Field Values
-
DEFAULT_CAPACITY
public static final Capacity DEFAULT_CAPACITY
Deprecated.The default capacity
-
-
Constructor Detail
-
Capacity
public Capacity()
Deprecated.Default constructor.Creates a default capacity with the default counts.
-
Capacity
public Capacity(int bodyCount, int jointCount, int listenerCount)
Deprecated.Full constructor.- Parameters:
bodyCount
- the estimated number of bodiesjointCount
- the estimated number of jointslistenerCount
- the estimated number of listeners- Throws:
IllegalArgumentException
- if any count is less than zero
-
-
Method Detail
-
getBodyCount
public int getBodyCount()
Deprecated.Returns the estimated number of bodies.- Returns:
- int
-
getJointCount
public int getJointCount()
Deprecated.Returns the estimated number of joints.- Returns:
- int
-
getListenerCount
public int getListenerCount()
Deprecated.Returns the estimated number of listeners.- Returns:
- int
-
-