org.yajul.util
Class PropertyMap.Entry

java.lang.Object
  extended by org.yajul.util.PropertyMap.Entry
All Implemented Interfaces:
java.util.Map.Entry
Enclosing class:
PropertyMap

public static class PropertyMap.Entry
extends java.lang.Object
implements java.util.Map.Entry

Represents a property name / value pair in the Map view of a bean.


Constructor Summary
PropertyMap.Entry(BeanProperties accessor, java.lang.Object bean, java.lang.String propertyName)
          Creates a new name / value pair in the map view of a bean.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 java.lang.Object setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyMap.Entry

public PropertyMap.Entry(BeanProperties accessor,
                         java.lang.Object bean,
                         java.lang.String propertyName)
Creates a new name / value pair in the map view of a bean.

Parameters:
accessor - The property properties (from the bean's class).
bean - The bean
propertyName - The name of the property.
Method Detail

getKey

public java.lang.Object getKey()
Specified by:
getKey in interface java.util.Map.Entry

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object value)
Specified by:
setValue in interface java.util.Map.Entry

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map.Entry
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map.Entry
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.