public class Entry
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object thatObj)
Compare this entry to another for relative ordering.
|
boolean |
equals(java.lang.Object thatObj)
Test this entry for equality to another.
|
int |
hashCode()
Consistent with
equals(java.lang.Object) , this method creates a hashCode
based on the packagename. |
java.lang.String |
toString() |
public int compareTo(java.lang.Object thatObj)
compareTo
in interface java.lang.Comparable
thatObj
- The object to compare.public boolean equals(java.lang.Object thatObj)
compareTo(java.lang.Object)
, this method tests
for equality purely on the package name.
equals
in class java.lang.Object
thatObj
- The object to comparetrue
if the two objects are
semantically equivalent, otherwise false
.public int hashCode()
equals(java.lang.Object)
, this method creates a hashCode
based on the packagename.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2013. All Rights Reserved.