Package org.joda.beans.impl
Class BasicBean
- java.lang.Object
-
- org.joda.beans.impl.BasicBean
-
- All Implemented Interfaces:
Bean
public abstract class BasicBean extends Object implements Bean
Basic implementation ofBean
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
Constructors Constructor Description BasicBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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, property, propertyNames
-
-
-
-
Method Detail
-
clone
public BasicBean clone()
Clones this bean, returning an independent copy.
-
equals
public boolean equals(Object obj)
Checks if this bean equals another.This compares the class and all the properties of the bean.
-
hashCode
public int hashCode()
Returns a suitable hash code.The hash code is derived from all the properties of the bean.
-
-