Class MjEdgeKey


  • public class MjEdgeKey
    extends java.lang.Object
    DOCUMENT ME!
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int[] V
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      MjEdgeKey()
      Creates a new MjEdgeKey object.
      MjEdgeKey​(int iV0, int iV1)
      Creates a new MjEdgeKey object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object kObject)
      Support for hashing into a map of edges.
      int hashCode()
      Support for hashing into a map of edges.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • V

        public final int[] V
        DOCUMENT ME!
    • Constructor Detail

      • MjEdgeKey

        public MjEdgeKey()
        Creates a new MjEdgeKey object.
      • MjEdgeKey

        public MjEdgeKey​(int iV0,
                         int iV1)
        Creates a new MjEdgeKey object.
        Parameters:
        iV0 - DOCUMENT ME!
        iV1 - DOCUMENT ME!
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object kObject)
        Support for hashing into a map of edges.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        kObject - an edge for comparison to the current one
        Returns:
        true iff the edges are identical. Because the class stores ordered indices, it is not necessary to use the more expensive test (V0 == other.V0 && V1 == other.V1) || (V0 == other.V1 && V1 == other.V0).
      • hashCode

        public int hashCode()
        Support for hashing into a map of edges.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash key for the edge