Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.faces.model
Class ResultSetDataModel.WrapResultSetEntry  view ResultSetDataModel.WrapResultSetEntry download ResultSetDataModel.WrapResultSetEntry.java

java.lang.Object
  extended byjavax.faces.model.ResultSetDataModel.WrapResultSetEntry
All Implemented Interfaces:
java.util.Map.Entry
Enclosing class:
ResultSetDataModel

private static class ResultSetDataModel.WrapResultSetEntry
extends java.lang.Object
implements java.util.Map.Entry


Field Summary
private  java.lang.Object _entryKey
           
private  ResultSetDataModel.WrapResultSetMap _wrapMap
           
 
Constructor Summary
ResultSetDataModel.WrapResultSetEntry(ResultSetDataModel.WrapResultSetMap wrapMap, java.lang.Object entryKey)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified object with this entry.
 java.lang.Object getKey()
          Get the key corresponding to this entry.
 java.lang.Object getValue()
          Get the value corresponding to this entry.
 int hashCode()
          Returns the hash code of the entry.
 java.lang.Object setValue(java.lang.Object value)
          Replaces the value with the specified object (optional operation).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_wrapMap

private ResultSetDataModel.WrapResultSetMap _wrapMap

_entryKey

private java.lang.Object _entryKey
Constructor Detail

ResultSetDataModel.WrapResultSetEntry

public ResultSetDataModel.WrapResultSetEntry(ResultSetDataModel.WrapResultSetMap wrapMap,
                                             java.lang.Object entryKey)
Method Detail

equals

public boolean equals(java.lang.Object o)
Description copied from interface: java.util.Map.Entry
Compares the specified object with this entry. Returns true only if the object is a mapping of identical key and value. In other words, this must be:

(o instanceof Map.Entry)
&& (getKey() == null ? ((Map.Entry) o).getKey() == null
                     : getKey().equals(((Map.Entry) o).getKey()))
&& (getValue() == null ? ((Map.Entry) o).getValue() == null
                       : getValue().equals(((Map.Entry) o).getValue()))

Specified by:
equals in interface java.util.Map.Entry

getKey

public java.lang.Object getKey()
Description copied from interface: java.util.Map.Entry
Get the key corresponding to this entry.

Specified by:
getKey in interface java.util.Map.Entry

getValue

public java.lang.Object getValue()
Description copied from interface: java.util.Map.Entry
Get the value corresponding to this entry. If you already called Iterator.remove(), this is undefined.

Specified by:
getValue in interface java.util.Map.Entry

hashCode

public int hashCode()
Description copied from interface: java.util.Map.Entry
Returns the hash code of the entry. This is defined as the exclusive-or of the hashcodes of the key and value (using 0 for null). In other words, this must be:

(getKey() == null ? 0 : getKey().hashCode())
^ (getValue() == null ? 0 : getValue().hashCode())

Specified by:
hashCode in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object value)
Description copied from interface: java.util.Map.Entry
Replaces the value with the specified object (optional operation). This writes through to the map, and is undefined if you already called Iterator.remove().

Specified by:
setValue in interface java.util.Map.Entry