com.starbase.util.collections
Interface Map.Entry

Enclosing interface:
Map

public static interface Map.Entry

An interface representing entries in a map.


Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the specified object equals this map entry.
 java.lang.Object getKey()
          Returns the key portion of the map entry.
 java.lang.Object getValue()
          Returns the value portion of the map entry.
 int hashCode()
          Returns a hash code for this map entry.
 java.lang.Object setValue(java.lang.Object value)
          Sets the value portion of the entry to the specified value (optional operation).
 

Method Detail

getKey

public java.lang.Object getKey()
Returns the key portion of the map entry.

Returns:
the key portion of the map entry.

getValue

public java.lang.Object getValue()
Returns the value portion of the map entry.

Returns:
the value portion of the map entry.

setValue

public java.lang.Object setValue(java.lang.Object value)
Sets the value portion of the entry to the specified value (optional operation).

Parameters:
value - the new value for this map entry.
Returns:
the previous value of this entry

equals

public boolean equals(java.lang.Object o)
Returns true if the specified object equals this map entry.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to be compared to
Returns:
true if the specified object equals this map entry.

hashCode

public int hashCode()
Returns a hash code for this map entry.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this map entry.


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.