org.yajul.util
Class PropertyMap.Entry
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 beanpropertyName
- The name of the property.
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.