P - the type of the property contentpublic abstract class BasicMetaProperty<P> extends Object implements MetaProperty<P>
| Modifier | Constructor and Description |
|---|---|
protected |
BasicMetaProperty(String propertyName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks if this meta-property equals another.
|
int |
hashCode()
Returns a suitable hash code.
|
String |
name()
Gets the property name.
|
String |
toString()
Returns a string that summarises the meta-property.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitannotation, annotations, createProperty, declaringType, get, getString, getString, metaBean, propertyGenericType, propertyType, put, set, setString, setString, styleprotected BasicMetaProperty(String propertyName)
propertyName - the property name, not emptypublic String name()
MetaPropertyThe JavaBean style methods getFoo() and setFoo() will lead to a property name of 'foo' and so on.
name in interface MetaProperty<P>public boolean equals(Object obj)
MetaPropertyThis compares the property name and declaring type. It does not compare the property or bean types.
equals in interface MetaProperty<P>equals in class Objectobj - the other meta-property, null returns falsepublic int hashCode()
MetaPropertyhashCode in interface MetaProperty<P>hashCode in class ObjectCopyright © 2007–2017 Joda.org. All rights reserved.