Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.util
Class RestrictedCollections.RestrictedEntrySet.RestrictedEntry

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.RestrictedCollections.RestrictedEntrySet.RestrictedEntry

All Implemented Interfaces:
java.io.Serializable, java.util.Map.Entry
Enclosing class:
RestrictedCollections.RestrictedEntrySet

protected class RestrictedCollections.RestrictedEntrySet.RestrictedEntry
extends Base
implements java.util.Map.Entry, java.io.Serializable

A Map Entry that restricts the key and value types.


Field Summary
protected  java.util.Map.Entry m_entry
           

 

Constructor Summary
RestrictedCollections.RestrictedEntrySet.RestrictedEntry(java.util.Map.Entry entry)
          Constructor.

 

Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified object with this entry for equality.
 java.lang.Object getKey()
          Returns the key corresponding to this entry.
 java.lang.Object getValue()
          Returns the value corresponding to this entry.
 int hashCode()
          Returns the hash code value for this map entry.
 java.lang.Object setValue(java.lang.Object value)
          Replaces the value corresponding to this entry with the specified value.
 java.lang.String toString()
          Return a String description for this Entry.

 

Field Detail

m_entry

protected java.util.Map.Entry m_entry

Constructor Detail

RestrictedCollections.RestrictedEntrySet.RestrictedEntry

public RestrictedCollections.RestrictedEntrySet.RestrictedEntry(java.util.Map.Entry entry)
Constructor.
Parameters:
entry - the Entry to wrap

Method Detail

getKey

public java.lang.Object getKey()
Returns the key corresponding to this entry.
Specified by:
getKey in interface java.util.Map.Entry
Returns:
the key corresponding to this entry

getValue

public java.lang.Object getValue()
Returns the value corresponding to this entry.
Specified by:
getValue in interface java.util.Map.Entry
Returns:
the value corresponding to this entry

setValue

public java.lang.Object setValue(java.lang.Object value)
Replaces the value corresponding to this entry with the specified value.
Specified by:
setValue in interface java.util.Map.Entry
Parameters:
value - new value to be stored in this entry
Returns:
old value corresponding to the entry
Throws:
java.lang.ClassCastException - if the class of the specified value prevents it from being stored in the backing map

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this entry for equality.
Specified by:
equals in interface java.util.Map.Entry
Parameters:
o - object to be compared for equality with this map entry
Returns:
true if the specified object is equal to this map entry

hashCode

public int hashCode()
Returns the hash code value for this map entry.
Specified by:
hashCode in interface java.util.Map.Entry
Returns:
the hash code value for this map entry

toString

public java.lang.String toString()
Return a String description for this Entry.
Returns:
a String description of the Entry

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.