| 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.
|
| 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.
|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
<B extends Bean> |
Property.bean() |
Gets the bean which owns this property.
|
static <T extends Bean> |
JodaBeanUtils.clone(T original) |
Clones a bean.
|
static <T extends Bean> |
JodaBeanUtils.cloneAlways(T original) |
Clones a bean always.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Iterator<Bean> |
JodaBeanUtils.beanIterator(Bean bean) |
Returns an iterator over all the beans contained within the bean.
|
java.lang.Class<? extends Bean> |
MetaBean.beanType() |
Get the type of the bean, represented as a
Class. |
BeanBuilder<? extends Bean> |
MetaBean.builder() |
Creates a bean builder that can be used to create an instance of this bean.
|
static <P> java.util.function.Function<Bean,P> |
JodaBeanUtils.chain(java.util.function.Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2) |
Chains a function to a meta-property.
|
static <P> java.util.function.Function<Bean,P> |
JodaBeanUtils.chain(MetaProperty<? extends Bean> mp1,
MetaProperty<P> mp2) |
Chains two meta-properties together.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparator(java.util.function.Function<Bean,?> query,
boolean ascending) |
Obtains a comparator for the specified bean query.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparatorAscending(java.util.function.Function<Bean,?> query) |
Obtains an ascending comparator for the specified bean query.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparatorDescending(java.util.function.Function<Bean,?> query) |
Obtains an descending comparator for the specified bean query.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Iterator<Bean> |
JodaBeanUtils.beanIterator(Bean bean) |
Returns an iterator over all the beans contained within the bean.
|
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 java.util.Map<java.lang.String,java.lang.Object> |
JodaBeanUtils.flatten(Bean bean) |
Flattens a bean to a
Map. |
P |
MetaProperty.get(Bean bean) |
Gets the value of the property for the specified bean.
|
default java.lang.String |
MetaProperty.getString(Bean bean) |
Gets the value of the property for the specified bean converted to a string.
|
default java.lang.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 java.lang.String |
JodaBeanUtils.propertiesToString(Bean bean,
java.lang.String prefix) |
Returns a string describing the set of properties on a bean.
|
default P |
MetaProperty.put(Bean bean,
java.lang.Object value) |
Sets the value of the property on the associated bean and returns the previous value.
|
void |
MetaProperty.set(Bean bean,
java.lang.Object value) |
Sets the value of the property on the specified bean.
|
default void |
MetaProperty.setString(Bean bean,
java.lang.String value) |
Sets the value of the property on the specified bean from a string by conversion.
|
default void |
MetaProperty.setString(Bean bean,
java.lang.String value,
org.joda.convert.StringConvert stringConvert) |
Sets the value of the property on the specified bean from a string by conversion.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <P> java.util.function.Function<Bean,P> |
JodaBeanUtils.chain(java.util.function.Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2) |
Chains a function to a meta-property.
|
static <P> java.util.function.Function<Bean,P> |
JodaBeanUtils.chain(java.util.function.Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2) |
Chains a function to a meta-property.
|
static <P> java.util.function.Function<Bean,P> |
JodaBeanUtils.chain(MetaProperty<? extends Bean> mp1,
MetaProperty<P> mp2) |
Chains two meta-properties together.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparator(java.util.function.Function<Bean,?> query,
boolean ascending) |
Obtains a comparator for the specified bean query.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparatorAscending(java.util.function.Function<Bean,?> query) |
Obtains an ascending comparator for the specified bean query.
|
static java.util.Comparator<Bean> |
JodaBeanUtils.comparatorDescending(java.util.function.Function<Bean,?> query) |
Obtains an descending comparator for the specified bean query.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
BasicBeanBuilder<T extends Bean> |
Basic implementation of
BeanBuilder that wraps a real bean. |
class |
BasicImmutableBeanBuilder<T extends Bean> |
Basic implementation of
BeanBuilder that wraps a MetaBean. |
class |
BufferingBeanBuilder<T extends Bean> |
Implementation of
BeanBuilder that buffers data in a local map. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
BasicBean |
Basic implementation of
Bean intended for applications to subclass. |
| Modifier and Type | Method | Description |
|---|---|---|
<B extends Bean> |
BasicProperty.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,
java.lang.Object value) |
| 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.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DirectBean |
A bean implementation designed for use by the code generator.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <B extends Bean> |
MinimalMetaBean.of(java.lang.Class<B> beanType,
java.lang.String[] fieldNames,
java.util.function.Supplier<BeanBuilder<B>> builderSupplier,
java.util.function.Function<B,java.lang.Object>... getters) |
Obtains an instance of the meta-bean for immutable beans.
|
static <B extends Bean> |
MinimalMetaBean.of(java.lang.Class<B> beanType,
java.lang.String[] fieldNames,
java.util.function.Supplier<BeanBuilder<B>> builderSupplier,
java.util.List<java.util.function.Function<B,java.lang.Object>> getters,
java.util.List<java.util.function.BiConsumer<B,java.lang.Object>> setters) |
Obtains an instance of the meta-bean for mutable beans.
|
static <B extends Bean> |
MinimalMetaBean.of(java.lang.Class<B> beanType,
java.util.function.Supplier<BeanBuilder<B>> builderSupplier,
java.util.function.Function<B,java.lang.Object>... getters) |
Deprecated.
Use version that takes the field names
|
static <B extends Bean> |
MinimalMetaBean.of(java.lang.Class<B> beanType,
java.util.function.Supplier<BeanBuilder<B>> builderSupplier,
java.util.List<java.util.function.Function<B,java.lang.Object>> getters,
java.util.List<java.util.function.BiConsumer<B,java.lang.Object>> setters) |
Deprecated.
Use version that takes the field names
|
| Modifier and Type | Method | Description |
|---|---|---|
P |
DirectMetaProperty.get(Bean bean) |
|
protected java.lang.Object |
DirectMetaBean.propertyGet(Bean bean,
java.lang.String propertyName,
boolean quiet) |
Gets the value of the property.
|
protected void |
DirectMetaBean.propertySet(Bean bean,
java.lang.String propertyName,
java.lang.Object value,
boolean quiet) |
Sets the value of the property.
|
void |
DirectMetaProperty.set(Bean bean,
java.lang.Object value) |
|
protected void |
DirectMetaBean.validate(Bean bean) |
Validates the values of the properties.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
FlexiBean |
Implementation of a fully dynamic
Bean. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
LightMetaBean<T extends Bean> |
A meta-bean implementation that operates using method handles.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <B extends Bean> |
LightMetaBean.of(java.lang.Class<B> beanClass) |
Deprecated.
Use method handles version of this method
|
static <B extends Bean> |
LightMetaBean.of(java.lang.Class<B> beanType,
java.lang.invoke.MethodHandles.Lookup lookup) |
Obtains an instance of the meta-bean using standard default values.
|
static <B extends Bean> |
LightMetaBean.of(java.lang.Class<B> beanType,
java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.Object... defaultValues) |
Deprecated.
Use version with field names, because no way to determine order of fields by reflection
|
static <B extends Bean> |
LightMetaBean.of(java.lang.Class<B> beanType,
java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.String[] fieldNames,
java.lang.Object... defaultValues) |
Obtains an instance of the meta-bean specifying default values.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
MapBean |
Implementation of a fully dynamic
Bean based on an exposed Map. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ReflectiveMetaBean<T extends Bean> |
A meta-bean implementation that uses reflection.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <B extends Bean> |
ReflectiveMetaBean.of(java.lang.Class<B> beanClass,
java.lang.String... propertyNames) |
Create a meta-bean and meta properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Object |
SerOptional.extractValue(MetaProperty<?> metaProp,
Bean bean) |
Extracts the value of the property from a bean, unwrapping any optional.
|
| Modifier and Type | Method | Description |
|---|---|---|
Bean |
JodaBeanBinReader.read(byte[] input) |
Reads and parses to a bean.
|
Bean |
JodaBeanBinReader.read(java.io.InputStream input) |
Reads and parses to a 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,
java.io.OutputStream output) |
Writes the bean to the
OutputStream. |
void |
JodaBeanBinWriter.write(Bean bean,
java.io.OutputStream output) |
Writes the bean to the
OutputStream. |
| Modifier and Type | Method | Description |
|---|---|---|
Bean |
JodaBeanJsonReader.read(java.io.Reader input) |
Reads and parses to a bean.
|
Bean |
JodaBeanJsonReader.read(java.lang.String input) |
Reads and parses to a bean.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
JodaBeanJsonWriter.write(Bean bean) |
Writes the bean to a string.
|
java.lang.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,
java.lang.Appendable output) |
Writes the bean to the
Appendable specifying whether to include the type at the root. |
void |
JodaBeanJsonWriter.write(Bean bean,
java.lang.Appendable output) |
Writes the bean to the
Appendable. |
java.lang.String |
JodaBeanSimpleJsonWriter.write(Bean bean) |
Writes the bean to a string.
|
void |
JodaBeanSimpleJsonWriter.write(Bean bean,
java.lang.Appendable output) |
Writes the bean to the
Appendable. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
JodaBeanSimpleMapWriter.write(Bean bean) |
Writes the bean to a string.
|
| Modifier and Type | Method | Description |
|---|---|---|
Bean |
JodaBeanXmlReader.read(java.io.InputStream input) |
Reads and parses to a bean.
|
Bean |
JodaBeanXmlReader.read(java.io.Reader input) |
Reads and parses to a bean.
|
Bean |
JodaBeanXmlReader.read(java.lang.String input) |
Reads and parses to a bean.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
JodaBeanXmlWriter.write(Bean bean) |
Writes the bean to a string.
|
java.lang.String |
JodaBeanXmlWriter.write(Bean bean,
boolean rootType) |
Writes the bean to a string.
|
java.lang.StringBuilder |
JodaBeanXmlWriter.writeToBuilder(Bean bean) |
Writes the bean to the
StringBuilder. |
java.lang.StringBuilder |
JodaBeanXmlWriter.writeToBuilder(Bean bean,
boolean rootType) |
Writes the bean to the
StringBuilder. |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
BeanAssert.assertBeanEquals(java.lang.String baseMsg,
Bean expected,
Bean actual) |
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEquals(java.lang.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(java.lang.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(java.lang.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.
|
Copyright © 2007–2018 Joda.org. All rights reserved.