Class EdgeKey

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EdgeKey>

    public class EdgeKey
    extends java.lang.Object
    implements java.lang.Comparable<EdgeKey>, java.io.Serializable
    DOCUMENT ME!
    See Also:
    Serialized Form
    • Field Summary

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

      Constructors 
      Constructor Description
      EdgeKey()
      Creates a new MjEdgeKey object.
      EdgeKey​(int iV0, int iV1)
      Creates a new MjEdgeKey object.
    • Field Detail

      • V

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

      • EdgeKey

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

        public EdgeKey​(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
      • LessThan

        public boolean LessThan​(EdgeKey rkKey)
      • compareTo

        public int compareTo​(EdgeKey arg0)
        Specified by:
        compareTo in interface java.lang.Comparable<EdgeKey>