public abstract class BasicBean extends Object implements Bean
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 and Description |
---|
BasicBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks if this bean equals another.
|
int |
hashCode()
Returns a suitable hash code.
|
<R> Property<R> |
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.
|
public BasicBean()
public <R> Property<R> property(String propertyName)
Bean
public Set<String> propertyNames()
Bean
propertyNames
in interface Bean
public boolean equals(Object obj)
This compares the class and all the properties of the bean.
public int hashCode()
The hash code is derived from all the properties of the bean.
Copyright © 2007–2013 Joda.org. All rights reserved.