Package WildMagic.LibFoundation.Meshes
Class EdgeKey
- java.lang.Object
-
- WildMagic.LibFoundation.Meshes.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!
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(EdgeKey arg0, EdgeKey arg1)
int
compareTo(EdgeKey arg0)
boolean
equals(java.lang.Object kObject)
Support for hashing into a map of edges.int
hashCode()
Support for hashing into a map of edges.boolean
LessThan(EdgeKey rkKey)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
V
public final int[] V
DOCUMENT ME!
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object kObject)
Support for hashing into a map of edges.- Overrides:
equals
in classjava.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 classjava.lang.Object
- Returns:
- the hash key for the edge
-
LessThan
public boolean LessThan(EdgeKey rkKey)
-
-