public class ImmutableBeans extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImmutableBeans.BooleanDefault
Default value of a boolean property of a bean.
|
static interface |
ImmutableBeans.EnumDefault
Default value of an enum property of a bean.
|
static interface |
ImmutableBeans.IntDefault
Default value of an int property.
|
static interface |
ImmutableBeans.NullDefault
Default value of a String or enum property of a bean that is null.
|
static interface |
ImmutableBeans.Property
Property of a bean.
|
static interface |
ImmutableBeans.StringDefault
Default value of a String property of a bean.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
copy(Class<T> beanClass,
Object o)
Creates a bean of a given class whose contents are the same as this bean.
|
static <T> T |
create(Class<T> beanClass)
Creates an immutable bean that implements a given interface.
|
public static <T> T create(Class<T> beanClass)
Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.