Package org.joda.beans
Interface TypedMetaBean<T extends Bean>
-
- Type Parameters:
T
- the type of the bean
- All Superinterfaces:
MetaBean
- All Known Implementing Classes:
LightMetaBean
,MinimalMetaBean
,ReflectiveMetaBean
public interface TypedMetaBean<T extends Bean> extends MetaBean
A meta-bean that captures the type of the bean.It is not possible to add the generic type to all beans, as the type cannot be refined in hierarchies. This interface is thus useful when there are no subclasses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>
beanType()
Get the type of the bean, represented as aClass
.BeanBuilder<T>
builder()
Creates a bean builder that can be used to create an instance of this bean.-
Methods inherited from interface org.joda.beans.MetaBean
annotation, annotationOpt, annotations, beanName, isBuildable, metaProperty, metaPropertyCount, metaPropertyExists, metaPropertyIterable, metaPropertyMap
-
-
-
-
Method Detail
-
builder
BeanBuilder<T> builder()
Description copied from interface:MetaBean
Creates a bean builder that can be used to create an instance of this bean.The builder is used in two main ways. The first is to allow immutable beans to be constructed. The second is to enable automated tools like serialization/deserialization.
The builder can be thought of as a
Map
ofMetaProperty
to value. Note that the implementation is not necessarily an actual map.
-
-