Uses of Interface
org.joda.beans.Bean
-
Packages that use Bean Package Description org.joda.beans Base interfaces and annotations defining Joda-Beans.org.joda.beans.impl Base implementations of Joda-Bean interfaces.org.joda.beans.impl.direct Implementation of Joda-Beans designed for extension by the code generator.org.joda.beans.impl.flexi Implementation of Joda-Beans as a flexible map of data.org.joda.beans.impl.light Implementation of light immutable Joda-Beans.org.joda.beans.impl.map Implementation of Joda-Beans extending a map.org.joda.beans.impl.reflection Implementation of Joda-Beans using reflection.org.joda.beans.ser Serialization of Joda-Beans.org.joda.beans.ser.bin Serialization of Joda-Beans using a binary format.org.joda.beans.ser.json Serialization of Joda-Beans using JSON.org.joda.beans.ser.map Serialization of Joda-Beans to/from an in-memory Map.org.joda.beans.ser.xml Serialization of Joda-Beans using XML.org.joda.beans.test Utility to assist with testing and comparing Joda-Beans. -
-
Uses of Bean in org.joda.beans
Classes in org.joda.beans with type parameters of type Bean Modifier and Type Interface Description interface
BeanBuilder<T extends Bean>
A builder for a bean, providing a safe way to create it.interface
TypedMetaBean<T extends Bean>
A meta-bean that captures the type of the bean.Subinterfaces of Bean in org.joda.beans Modifier and Type Interface Description interface
DynamicBean
A dynamic bean that allows properties to be added and removed.interface
ImmutableBean
An immutable bean consisting of a set of properties.Methods in org.joda.beans with type parameters of type Bean Modifier and Type Method Description <B extends Bean>
BProperty. bean()
Gets the bean which owns this property.static <T extends Bean>
TJodaBeanUtils. clone(T original)
Clones a bean.static <T extends Bean>
TJodaBeanUtils. cloneAlways(T original)
Clones a bean always.static <T extends Bean>
BeanBuilder<T>JodaBeanUtils. copy(Bean sourceBean, Class<T> destType)
Copies properties from a bean to a different bean type.static <T extends Bean>
BeanBuilder<T>JodaBeanUtils. copyInto(Bean sourceBean, MetaBean destMeta, BeanBuilder<T> destBuilder)
Copies properties from a bean to a builder, which may be for a different type.Methods in org.joda.beans that return types with arguments of type Bean Modifier and Type Method Description static Iterator<Bean>
JodaBeanUtils. beanIterator(Bean bean)
Returns an iterator over all the beans contained within the bean.Class<? extends Bean>
MetaBean. beanType()
Get the type of the bean, represented as aClass
.BeanBuilder<? extends Bean>
MetaBean. builder()
Creates a bean builder that can be used to create an instance of this bean.static <P> Function<Bean,P>
JodaBeanUtils. chain(Function<Bean,? extends Bean> fn1, MetaProperty<P> mp2)
Chains a function to a meta-property.static <P> Function<Bean,P>
JodaBeanUtils. chain(MetaProperty<? extends Bean> mp1, MetaProperty<P> mp2)
Chains two meta-properties together.static Comparator<Bean>
JodaBeanUtils. comparator(Function<Bean,?> query, boolean ascending)
Obtains a comparator for the specified bean query.static Comparator<Bean>
JodaBeanUtils. comparatorAscending(Function<Bean,?> query)
Obtains an ascending comparator for the specified bean query.static Comparator<Bean>
JodaBeanUtils. comparatorDescending(Function<Bean,?> query)
Obtains an descending comparator for the specified bean query.Methods in org.joda.beans with parameters of type Bean Modifier and Type Method Description static Iterator<Bean>
JodaBeanUtils. beanIterator(Bean bean)
Returns an iterator over all the beans contained within the bean.static <T extends Bean>
BeanBuilder<T>JodaBeanUtils. copy(Bean sourceBean, Class<T> destType)
Copies properties from a bean to a different bean type.static <T extends Bean>
BeanBuilder<T>JodaBeanUtils. copyInto(Bean sourceBean, MetaBean destMeta, BeanBuilder<T> destBuilder)
Copies properties from a bean to a builder, which may be for a different type.default Property<P>
MetaProperty. createProperty(Bean bean)
Creates a property that binds this meta-property to a specific bean.static boolean
JodaBeanUtils. equalIgnoring(Bean bean1, Bean bean2, MetaProperty<?>... properties)
Checks if two beans are equal ignoring one or more properties.static Map<String,Object>
JodaBeanUtils. flatten(Bean bean)
Flattens a bean to aMap
.P
MetaProperty. get(Bean bean)
Gets the value of the property for the specified bean.Optional<P>
PropertyPath. get(Bean bean)
Gets a value by path from the specified bean.default String
MetaProperty. getString(Bean bean)
Gets the value of the property for the specified bean converted to a string.default String
MetaProperty. getString(Bean bean, org.joda.convert.StringConvert stringConvert)
Gets the value of the property for the specified bean converted to a string.static boolean
JodaBeanUtils. propertiesEqual(Bean bean1, Bean bean2)
Checks if the two beans have the same set of properties.static int
JodaBeanUtils. propertiesHashCode(Bean bean)
Returns a hash code based on the set of properties on a bean.static String
JodaBeanUtils. propertiesToString(Bean bean, String prefix)
Returns a string describing the set of properties on a bean.default P
MetaProperty. put(Bean bean, Object value)
Sets the value of the property on the associated bean and returns the previous value.void
MetaProperty. set(Bean bean, Object value)
Sets the value of the property on the specified bean.default void
MetaProperty. setString(Bean bean, String value)
Sets the value of the property on the specified bean from a string by conversion.default void
MetaProperty. setString(Bean bean, String value, org.joda.convert.StringConvert stringConvert)
Sets the value of the property on the specified bean from a string by conversion.Method parameters in org.joda.beans with type arguments of type Bean Modifier and Type Method Description static <P> Function<Bean,P>
JodaBeanUtils. chain(Function<Bean,? extends Bean> fn1, MetaProperty<P> mp2)
Chains a function to a meta-property.static <P> Function<Bean,P>
JodaBeanUtils. chain(Function<Bean,? extends Bean> fn1, MetaProperty<P> mp2)
Chains a function to a meta-property.static <P> Function<Bean,P>
JodaBeanUtils. chain(MetaProperty<? extends Bean> mp1, MetaProperty<P> mp2)
Chains two meta-properties together.static Comparator<Bean>
JodaBeanUtils. comparator(Function<Bean,?> query, boolean ascending)
Obtains a comparator for the specified bean query.static Comparator<Bean>
JodaBeanUtils. comparatorAscending(Function<Bean,?> query)
Obtains an ascending comparator for the specified bean query.static Comparator<Bean>
JodaBeanUtils. comparatorDescending(Function<Bean,?> query)
Obtains an descending comparator for the specified bean query. -
Uses of Bean in org.joda.beans.impl
Classes in org.joda.beans.impl with type parameters of type Bean Modifier and Type Class Description class
BasicBeanBuilder<T extends Bean>
Basic implementation ofBeanBuilder
that wraps a real bean.class
BasicImmutableBeanBuilder<T extends Bean>
Basic implementation ofBeanBuilder
that wraps aMetaBean
.class
BufferingBeanBuilder<T extends Bean>
Implementation ofBeanBuilder
that buffers data in a local map.Classes in org.joda.beans.impl that implement Bean Modifier and Type Class Description class
BasicBean
Basic implementation ofBean
intended for applications to subclass.Methods in org.joda.beans.impl with type parameters of type Bean Modifier and Type Method Description <B extends Bean>
BBasicProperty. bean()
Methods in org.joda.beans.impl with parameters of type Bean Modifier and Type Method Description P
StandaloneMetaProperty. get(Bean bean)
static <P> BasicProperty<P>
BasicProperty. of(Bean bean, MetaProperty<P> metaProperty)
Factory to create a property avoiding duplicate generics.static BasicPropertyMap
BasicPropertyMap. of(Bean bean)
Factory to create a property map avoiding duplicate generics.void
StandaloneMetaProperty. set(Bean bean, Object value)
-
Uses of Bean in org.joda.beans.impl.direct
Classes in org.joda.beans.impl.direct with type parameters of type Bean Modifier and Type Class Description class
DirectBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.class
DirectFieldsBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.class
DirectPrivateBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.class
MinimalMetaBean<T extends Bean>
A meta-bean implementation designed for use by the code generator.Classes in org.joda.beans.impl.direct that implement Bean Modifier and Type Class Description class
DirectBean
A bean implementation designed for use by the code generator.Methods in org.joda.beans.impl.direct with type parameters of type Bean Modifier and Type Method Description static <B extends Bean>
MinimalMetaBean<B>MinimalMetaBean. of(Class<B> beanType, String[] fieldNames, Supplier<BeanBuilder<B>> builderSupplier, Function<B,Object>... getters)
Obtains an instance of the meta-bean for immutable beans.static <B extends Bean>
MinimalMetaBean<B>MinimalMetaBean. of(Class<B> beanType, String[] fieldNames, Supplier<BeanBuilder<B>> builderSupplier, List<Function<B,Object>> getters, List<BiConsumer<B,Object>> setters)
Obtains an instance of the meta-bean for mutable beans.static <B extends Bean>
MinimalMetaBean<B>MinimalMetaBean. of(Class<B> beanType, Supplier<BeanBuilder<B>> builderSupplier, Function<B,Object>... getters)
Deprecated.Use version that takes the field namesstatic <B extends Bean>
MinimalMetaBean<B>MinimalMetaBean. of(Class<B> beanType, Supplier<BeanBuilder<B>> builderSupplier, List<Function<B,Object>> getters, List<BiConsumer<B,Object>> setters)
Deprecated.Use version that takes the field namesMethods in org.joda.beans.impl.direct with parameters of type Bean Modifier and Type Method Description P
DirectMetaProperty. get(Bean bean)
protected Object
DirectMetaBean. propertyGet(Bean bean, String propertyName, boolean quiet)
Gets the value of the property.protected void
DirectMetaBean. propertySet(Bean bean, String propertyName, Object value, boolean quiet)
Sets the value of the property.void
DirectMetaProperty. set(Bean bean, Object value)
protected void
DirectMetaBean. validate(Bean bean)
Validates the values of the properties. -
Uses of Bean in org.joda.beans.impl.flexi
Classes in org.joda.beans.impl.flexi that implement Bean Modifier and Type Class Description class
FlexiBean
Implementation of a fully dynamicBean
. -
Uses of Bean in org.joda.beans.impl.light
Classes in org.joda.beans.impl.light with type parameters of type Bean Modifier and Type Class Description class
LightMetaBean<T extends Bean>
A meta-bean implementation that operates using method handles.Methods in org.joda.beans.impl.light with type parameters of type Bean Modifier and Type Method Description static <B extends Bean>
LightMetaBean<B>LightMetaBean. of(Class<B> beanClass)
Deprecated.Use method handles version of this methodstatic <B extends Bean>
LightMetaBean<B>LightMetaBean. of(Class<B> beanType, MethodHandles.Lookup lookup)
Obtains an instance of the meta-bean using standard default values.static <B extends Bean>
LightMetaBean<B>LightMetaBean. of(Class<B> beanType, MethodHandles.Lookup lookup, Object... defaultValues)
Deprecated.Use version with field names, because no way to determine order of fields by reflectionstatic <B extends Bean>
LightMetaBean<B>LightMetaBean. of(Class<B> beanType, MethodHandles.Lookup lookup, String[] fieldNames, Object... defaultValues)
Obtains an instance of the meta-bean specifying default values. -
Uses of Bean in org.joda.beans.impl.map
Classes in org.joda.beans.impl.map that implement Bean Modifier and Type Class Description class
MapBean
Implementation of a fully dynamicBean
based on an exposedMap
. -
Uses of Bean in org.joda.beans.impl.reflection
Classes in org.joda.beans.impl.reflection with type parameters of type Bean Modifier and Type Class Description class
ReflectiveMetaBean<T extends Bean>
A meta-bean implementation that uses reflection.Methods in org.joda.beans.impl.reflection with type parameters of type Bean Modifier and Type Method Description static <B extends Bean>
ReflectiveMetaBean<B>ReflectiveMetaBean. of(Class<B> beanClass, String... propertyNames)
Create a meta-bean and meta properties. -
Uses of Bean in org.joda.beans.ser
Methods in org.joda.beans.ser that return Bean Modifier and Type Method Description Bean
JodaBeanSmartReader. read(byte[] input)
Reads and parses to a bean.Bean
JodaBeanSmartReader. read(InputStream input)
Reads and parses to a bean.Methods in org.joda.beans.ser with parameters of type Bean Modifier and Type Method Description static Object
SerOptional. extractValue(MetaProperty<?> metaProp, Bean bean)
Extracts the value of the property from a bean, unwrapping any optional. -
Uses of Bean in org.joda.beans.ser.bin
Methods in org.joda.beans.ser.bin that return Bean Modifier and Type Method Description Bean
JodaBeanBinReader. read(byte[] input)
Reads and parses to a bean.Bean
JodaBeanBinReader. read(InputStream input)
Reads and parses to a bean.Methods in org.joda.beans.ser.bin with parameters of type Bean Modifier and Type Method Description byte[]
JodaBeanBinWriter. write(Bean bean)
Writes the bean to an array of bytes.byte[]
JodaBeanBinWriter. write(Bean bean, boolean rootType)
Writes the bean to an array of bytes.void
JodaBeanBinWriter. write(Bean bean, boolean rootType, OutputStream output)
Writes the bean to theOutputStream
.void
JodaBeanBinWriter. write(Bean bean, OutputStream output)
Writes the bean to theOutputStream
. -
Uses of Bean in org.joda.beans.ser.json
Methods in org.joda.beans.ser.json that return Bean Modifier and Type Method Description Bean
JodaBeanJsonReader. read(Reader input)
Reads and parses to a bean.Bean
JodaBeanJsonReader. read(String input)
Reads and parses to a bean.Methods in org.joda.beans.ser.json with parameters of type Bean Modifier and Type Method Description String
JodaBeanJsonWriter. write(Bean bean)
Writes the bean to a string.String
JodaBeanJsonWriter. write(Bean bean, boolean rootType)
Writes the bean to a string specifying whether to include the type at the root.void
JodaBeanJsonWriter. write(Bean bean, boolean rootType, Appendable output)
Writes the bean to theAppendable
specifying whether to include the type at the root.void
JodaBeanJsonWriter. write(Bean bean, Appendable output)
Writes the bean to theAppendable
.String
JodaBeanSimpleJsonWriter. write(Bean bean)
Writes the bean to a string.void
JodaBeanSimpleJsonWriter. write(Bean bean, Appendable output)
Writes the bean to theAppendable
. -
Uses of Bean in org.joda.beans.ser.map
Methods in org.joda.beans.ser.map with parameters of type Bean Modifier and Type Method Description Map<String,Object>
JodaBeanSimpleMapWriter. write(Bean bean)
Writes the bean to a string. -
Uses of Bean in org.joda.beans.ser.xml
Methods in org.joda.beans.ser.xml that return Bean Modifier and Type Method Description Bean
JodaBeanXmlReader. read(InputStream input)
Reads and parses to a bean.Bean
JodaBeanXmlReader. read(Reader input)
Reads and parses to a bean.Bean
JodaBeanXmlReader. read(String input)
Reads and parses to a bean.Methods in org.joda.beans.ser.xml with parameters of type Bean Modifier and Type Method Description String
JodaBeanXmlWriter. write(Bean bean)
Writes the bean to a string.String
JodaBeanXmlWriter. write(Bean bean, boolean rootType)
Writes the bean to a string.void
JodaBeanXmlWriter. write(Bean bean, boolean rootType, Appendable output)
Writes the bean to theAppendable
.void
JodaBeanXmlWriter. write(Bean bean, Appendable output)
Writes the bean to theAppendable
.StringBuilder
JodaBeanXmlWriter. writeToBuilder(Bean bean)
Deprecated.StringBuilder
JodaBeanXmlWriter. writeToBuilder(Bean bean, boolean rootType)
Deprecated. -
Uses of Bean in org.joda.beans.test
Methods in org.joda.beans.test with parameters of type Bean Modifier and Type Method Description static void
BeanAssert. assertBeanEquals(String baseMsg, Bean expected, Bean actual)
Asserts that two beans are equal, providing a better error message.static void
BeanAssert. assertBeanEquals(String baseMsg, Bean expected, Bean actual, double tolerance)
Asserts that two beans are equal, providing a better error message.static void
BeanAssert. assertBeanEquals(Bean expected, Bean actual)
Asserts that two beans are equal, providing a better error message.static void
BeanAssert. assertBeanEquals(Bean expected, Bean actual, double tolerance)
Asserts that two beans are equal, providing a better error message.static void
BeanAssert. assertBeanEqualsFullDetail(String baseMsg, Bean expected, Bean actual)
Asserts that two beans are equal, providing a better error message, with an unlimited number of errors reported.static void
BeanAssert. assertBeanEqualsFullDetail(String baseMsg, Bean expected, Bean actual, double tolerance)
Asserts that two beans are equal, providing a better error message, with an unlimited number of errors reported.static void
BeanAssert. assertBeanEqualsFullDetail(Bean expected, Bean actual)
Asserts that two beans are equal, providing a better error message.static void
BeanAssert. assertBeanEqualsFullDetail(Bean expected, Bean actual, double tolerance)
Asserts that two beans are equal, providing a better error message.static void
JodaBeanTests. coverBeanEquals(Bean bean1, Bean bean2)
Test a bean equals method for the primary purpose of increasing test coverage.static void
JodaBeanTests. coverMutableBean(Bean bean)
Test a mutable bean for the primary purpose of increasing test coverage.
-