|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.BasicBean
public abstract class BasicBean
Basic implementation of Bean intended for applications to subclass.
The subclass must to provide an implementation for Bean.metaBean().
This returns the complete definition of the bean at the meta level.
| Constructor Summary | |
|---|---|
BasicBean()
|
|
| Method Summary | ||
|---|---|---|
BasicBean |
clone()
Clones this bean, returning an independent copy. |
|
boolean |
equals(Object obj)
Checks if this bean equals another. |
|
int |
hashCode()
Returns a suitable hash code. |
|
|
property(String propertyName)
Gets a property by name. |
|
Set<String> |
propertyNames()
Gets the set of property names. |
|
String |
toString()
Returns a string that summarises the bean. |
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.beans.Bean |
|---|
metaBean |
| Constructor Detail |
|---|
public BasicBean()
| Method Detail |
|---|
public <R> Property<R> property(String propertyName)
BeanEach bean consists of a known set of properties. This method checks whether there is a property with the specified name.
The base interface throws an exception if the name is not recognised.
By contrast, the DynamicBean subinterface creates the property on demand.
property in interface BeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
public Set<String> propertyNames()
BeanEach bean consists of a known set of properties. This method returns the known property names.
propertyNames in interface Beanpublic BasicBean clone()
clone in class Objectpublic boolean equals(Object obj)
This compares the class and all the properties of the bean.
equals in class Objectobj - the object to compare to, null returns false
public int hashCode()
The hash code is derived from all the properties of the bean.
hashCode in class Objectpublic String toString()
The string contains the class name and properties.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||