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 interfaceBeanBuilder<T extends Bean>A builder for a bean, providing a safe way to create it.interfaceTypedMetaBean<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 interfaceDynamicBeanA dynamic bean that allows properties to be added and removed.interfaceImmutableBeanAn 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 booleanJodaBeanUtils. 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.PMetaProperty. 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 StringMetaProperty. getString(Bean bean)Gets the value of the property for the specified bean converted to a string.default StringMetaProperty. getString(Bean bean, org.joda.convert.StringConvert stringConvert)Gets the value of the property for the specified bean converted to a string.static booleanJodaBeanUtils. propertiesEqual(Bean bean1, Bean bean2)Checks if the two beans have the same set of properties.static intJodaBeanUtils. propertiesHashCode(Bean bean)Returns a hash code based on the set of properties on a bean.static StringJodaBeanUtils. propertiesToString(Bean bean, String prefix)Returns a string describing the set of properties on a bean.default PMetaProperty. put(Bean bean, Object value)Sets the value of the property on the associated bean and returns the previous value.voidMetaProperty. set(Bean bean, Object value)Sets the value of the property on the specified bean.default voidMetaProperty. setString(Bean bean, String value)Sets the value of the property on the specified bean from a string by conversion.default voidMetaProperty. 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 classBasicBeanBuilder<T extends Bean>Basic implementation ofBeanBuilderthat wraps a real bean.classBasicImmutableBeanBuilder<T extends Bean>Basic implementation ofBeanBuilderthat wraps aMetaBean.classBufferingBeanBuilder<T extends Bean>Implementation ofBeanBuilderthat buffers data in a local map.Classes in org.joda.beans.impl that implement Bean Modifier and Type Class Description classBasicBeanBasic implementation ofBeanintended 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 PStandaloneMetaProperty. get(Bean bean)static <P> BasicProperty<P>BasicProperty. of(Bean bean, MetaProperty<P> metaProperty)Factory to create a property avoiding duplicate generics.static BasicPropertyMapBasicPropertyMap. of(Bean bean)Factory to create a property map avoiding duplicate generics.voidStandaloneMetaProperty. 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 classDirectBeanBuilder<T extends Bean>A builder implementation designed for use by the code generator.classDirectFieldsBeanBuilder<T extends Bean>A builder implementation designed for use by the code generator.classDirectPrivateBeanBuilder<T extends Bean>A builder implementation designed for use by the code generator.classMinimalMetaBean<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 classDirectBeanA 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 PDirectMetaProperty. get(Bean bean)protected ObjectDirectMetaBean. propertyGet(Bean bean, String propertyName, boolean quiet)Gets the value of the property.protected voidDirectMetaBean. propertySet(Bean bean, String propertyName, Object value, boolean quiet)Sets the value of the property.voidDirectMetaProperty. set(Bean bean, Object value)protected voidDirectMetaBean. 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 classFlexiBeanImplementation 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 classLightMetaBean<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 classMapBeanImplementation of a fully dynamicBeanbased 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 classReflectiveMetaBean<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 BeanJodaBeanSmartReader. read(byte[] input)Reads and parses to a bean.BeanJodaBeanSmartReader. 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 ObjectSerOptional. 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 BeanJodaBeanBinReader. read(byte[] input)Reads and parses to a bean.BeanJodaBeanBinReader. 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.voidJodaBeanBinWriter. write(Bean bean, boolean rootType, OutputStream output)Writes the bean to theOutputStream.voidJodaBeanBinWriter. 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 BeanJodaBeanJsonReader. read(Reader input)Reads and parses to a bean.BeanJodaBeanJsonReader. 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 StringJodaBeanJsonWriter. write(Bean bean)Writes the bean to a string.StringJodaBeanJsonWriter. write(Bean bean, boolean rootType)Writes the bean to a string specifying whether to include the type at the root.voidJodaBeanJsonWriter. write(Bean bean, boolean rootType, Appendable output)Writes the bean to theAppendablespecifying whether to include the type at the root.voidJodaBeanJsonWriter. write(Bean bean, Appendable output)Writes the bean to theAppendable.StringJodaBeanSimpleJsonWriter. write(Bean bean)Writes the bean to a string.voidJodaBeanSimpleJsonWriter. 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 BeanJodaBeanXmlReader. read(InputStream input)Reads and parses to a bean.BeanJodaBeanXmlReader. read(Reader input)Reads and parses to a bean.BeanJodaBeanXmlReader. 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 StringJodaBeanXmlWriter. write(Bean bean)Writes the bean to a string.StringJodaBeanXmlWriter. write(Bean bean, boolean rootType)Writes the bean to a string.voidJodaBeanXmlWriter. write(Bean bean, boolean rootType, Appendable output)Writes the bean to theAppendable.voidJodaBeanXmlWriter. write(Bean bean, Appendable output)Writes the bean to theAppendable.StringBuilderJodaBeanXmlWriter. writeToBuilder(Bean bean)Deprecated.StringBuilderJodaBeanXmlWriter. 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 voidBeanAssert. assertBeanEquals(String baseMsg, Bean expected, Bean actual)Asserts that two beans are equal, providing a better error message.static voidBeanAssert. assertBeanEquals(String baseMsg, Bean expected, Bean actual, double tolerance)Asserts that two beans are equal, providing a better error message.static voidBeanAssert. assertBeanEquals(Bean expected, Bean actual)Asserts that two beans are equal, providing a better error message.static voidBeanAssert. assertBeanEquals(Bean expected, Bean actual, double tolerance)Asserts that two beans are equal, providing a better error message.static voidBeanAssert. 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 voidBeanAssert. 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 voidBeanAssert. assertBeanEqualsFullDetail(Bean expected, Bean actual)Asserts that two beans are equal, providing a better error message.static voidBeanAssert. assertBeanEqualsFullDetail(Bean expected, Bean actual, double tolerance)Asserts that two beans are equal, providing a better error message.static voidJodaBeanTests. coverBeanEquals(Bean bean1, Bean bean2)Test a bean equals method for the primary purpose of increasing test coverage.static voidJodaBeanTests. coverMutableBean(Bean bean)Test a mutable bean for the primary purpose of increasing test coverage.
-