Class ContactID

java.lang.Object
com.codename1.gaming.physics.box2d.collision.ContactID
All Implemented Interfaces:
Comparable<ContactID>

public class ContactID extends Object implements Comparable<ContactID>
  • Field Details

    • indexA

      public byte indexA
    • indexB

      public byte indexB
    • typeA

      public byte typeA
    • typeB

      public byte typeB
  • Constructor Details

    • ContactID

      public ContactID()
    • ContactID

      public ContactID(ContactID c)
  • Method Details

    • getKey

      public int getKey()
    • isEqual

      public boolean isEqual(ContactID cid)
    • set

      public void set(ContactID c)
    • flip

      public void flip()
    • zero

      public void zero()
    • compareTo

      public int compareTo(ContactID o)
      Description copied from interface: Comparable

      Compares this object to the specified object to determine their relative order.

      Parameters
      • another: the object to compare to this instance.
      Returns
      Specified by:
      compareTo in interface Comparable<ContactID>
      Returns:

      a negative integer if this instance is less than another; a positive integer if this instance is greater than another; 0 if this instance has the same order as another.

      Throws
      • ClassCastException: @throws ClassCastException if another cannot be converted into something comparable to this instance.