public static class AggregateCloner.Builder
extends java.lang.Object
Constructor and Description |
---|
AggregateCloner.Builder()
Create a new aggregate builder.
|
Modifier and Type | Method and Description |
---|---|
AggregateCloner.Builder |
andThen(java.lang.Class<? extends Cloner> type)
Add the next cloner that will be considered in turn.
|
AggregateCloner.Builder |
andThen(com.google.common.base.Function<AggregateCloner.BuilderParameters,Cloner> factory)
Add the next cloner that will be considered in turn.
|
AggregateCloner |
build()
Build a new aggregate cloner using the supplied values.
|
AggregateCloner.Builder |
instanceProvider(InstanceProvider provider)
Set the instance provider supplied to all cloners in this builder.
|
public AggregateCloner.Builder()
public AggregateCloner.Builder instanceProvider(InstanceProvider provider)
provider
- - new instance provider.public AggregateCloner.Builder andThen(java.lang.Class<? extends Cloner> type)
type
- - the type of the next cloner.public AggregateCloner.Builder andThen(com.google.common.base.Function<AggregateCloner.BuilderParameters,Cloner> factory)
factory
- - factory constructing the next cloner.public AggregateCloner build()