net.sf.beanlib
Class CollectionPropertyName<T>
java.lang.Object
net.sf.beanlib.CollectionPropertyName<T>
public class CollectionPropertyName<T>
- 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<T> declaringClass
collectionProperty
private final String collectionProperty
hashCode
private final int hashCode
beanGetter
private final BeanGetter beanGetter
CollectionPropertyName
public CollectionPropertyName(Class<T> declaringClass,
String collectionProperty)
- Parameters:
declaringClass
- declaring class of the Collection or Map property.collectionProperty
- Collection or Map property name.
createCollectionPropertyNames
public static <T> CollectionPropertyName<T>[] createCollectionPropertyNames(Class<T> declaringClass,
String[] collectionProperties)
- Convenient factory method.
getDeclaringClass
public Class<T> 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