Module org.dyn4j

Class BroadphaseKey


  • final class BroadphaseKey
    extends java.lang.Object
    Represents a key for a BroadphaseItem used for fast look ups in the BroadphaseDetectors.
    Since:
    3.2.0
    Version:
    3.4.0
    Author:
    William Bittle
    • Constructor Detail

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • computeHashCode

        protected final int computeHashCode()
        Computes the hashcode from the collidable and fixture ids.
        Returns:
        int
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object