|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jini.entry.AbstractEntry
This class is a specific, generally useful base class for entry types. An entry does not need to subclass this type, but you may find it useful to do so.
Entry,
Serialized Form| Constructor Summary | |
AbstractEntry()
|
|
| Method Summary | |
static boolean |
equals(Entry e1,
Entry e2)
Returns true if the two objects have the same value.
|
boolean |
equals(Object other)
Returns true if the other object has the same value as this
one. |
int |
hashCode()
Returns a hash code. |
static int |
hashCode(Entry entry)
Returns a hash code. |
String |
toString()
Print out the entry as the sum of all its fields. |
static String |
toString(Entry entry)
Print out the given entry as the sum of all its fields. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractEntry()
| Method Detail |
public boolean equals(Object other)
true if the other object has the same value as this
one. This means that the other object is of the same class, and
that, for each field F of the class, references in both
objects are null or equals returns
true when invoked on the value of F from one
object with the other object as a parameter.
public static boolean equals(Entry e1,
Entry e2)
true if the two objects have the same value.
This means that both objects are of the same class, and
that, for each field F of the class, references in both
objects are null or equals returns
true when invoked on the value of F from one
object with the other object as a parameter.
e1 - an entry object to compare to e2e2 - an entry object to compare to e1
true if the two objects have the same valuepublic int hashCode()
null field. Overrides
Object.hashCode().
public static int hashCode(Entry entry)
null field.
entry - the entry for which to generate a hash code
public String toString()
public static String toString(Entry entry)
entry - an entry to represent as a String
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||