All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.tron.Entry

java.lang.Object
   |
   +----uhr.core.tron.Entry

public class Entry
extends Object
This class is a single key value entry in a collection. An Entry is immutable.


Constructor Index

 o Entry(String, Object)
Creates a new Entry with the key and value.

Method Index

 o equals(Object)
Compares two Entrys.
 o getKey()
Returns the key.
 o getValue()
Returns the value, which may be null.

Constructors

 o Entry
 public Entry(String key,
              Object value)
Creates a new Entry with the key and value.

Parameters:
key - the key, which should not be null.
value - the value, which may be null.
Throws: IllegalArgumentException
if the key is null.

Methods

 o getKey
 public String getKey()
Returns the key.

Returns:
the key.
 o getValue
 public Object getValue()
Returns the value, which may be null.

Returns:
the value.
 o equals
 public boolean equals(Object object)
Compares two Entrys. The result is true if and only if the argument is not null and is an Entry object that represents the same key and value as this object.

Parameters:
object - the object to compare with.
Returns:
true if the objects are the same; false otherwise.
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index