public static enum Binder.CollectionStrategy extends Enum<Binder.CollectionStrategy>
Enum Constant and Description |
---|
bind
To bind the collection.
|
copy
To just copy the reference of the collection.
|
duplicate
To duplicate the collection
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
copy(Object readValue)
Copy a given collection.
|
static Binder.CollectionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Binder.CollectionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Binder.CollectionStrategy copy
public static final Binder.CollectionStrategy duplicate
public static final Binder.CollectionStrategy bind
BinderModelBuilder#addCollectionStrategy(CollectionStrategy, String...)
since it is only use in internaly by the method BinderModelBuilder.addCollectionBinder(Binder, String...)
Note: at this level, we will just create the collection.public static Binder.CollectionStrategy[] values()
for (Binder.CollectionStrategy c : Binder.CollectionStrategy.values()) System.out.println(c);
public static Binder.CollectionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2004–2020 CodeLutin. All rights reserved.