net.sf.beanlib
Class CollectionPropertyName
java.lang.Object
net.sf.beanlib.CollectionPropertyName
public class CollectionPropertyName
- extends Object
Used to uniquely identify a Collection or Map property of a JavaBean object.
- Author:
- Joe D. Velopar
EMPTY_ARRAY
public static final CollectionPropertyName[] EMPTY_ARRAY
declaringClass
private final Class declaringClass
collectionProperty
private final String collectionProperty
hashCode
private final int hashCode
CollectionPropertyName
public CollectionPropertyName(Class declaringClass,
String collectionProperty)
- Parameters:
declaringClass
- declaring class of the Collection or Map property.collectionProperty
- Collection or Map property name.
createCollectionPropertyNames
public static CollectionPropertyName[] createCollectionPropertyNames(Class declaringClass,
String[] collectionProperties)
- Convenient factory method.
getDeclaringClass
public Class getDeclaringClass()
getCollectionProperty
public String getCollectionProperty()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object