Module org.dyn4j

Class 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 Detail

      • DEFAULT_BODY_COUNT

        public static final int DEFAULT_BODY_COUNT
        Deprecated.
        The default Body count
        See Also:
        Constant Field Values
      • DEFAULT_JOINT_COUNT

        public static final int DEFAULT_JOINT_COUNT
        Deprecated.
        The default Joint 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 bodies
        jointCount - the estimated number of joints
        listenerCount - the estimated number of listeners
        Throws:
        IllegalArgumentException - if any count is less than zero
    • Method Detail

      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • 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