Class AggregateCloner
java.lang.Object
com.comphenix.protocol.reflect.cloning.AggregateCloner
- All Implemented Interfaces:
Cloner
Implements a cloning procedure by trying multiple methods in turn until one is successful.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a builder for aggregate (combined) cloners.static classSupplies the cloner factories with necessary parameters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AggregateClonerRepresents a default aggregate cloner. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the current cloner can clone the given object.Perform the clone.Retrieves a view of the current list of cloners.static AggregateCloner.BuilderBegins constructing a new aggregate cloner.
-
Field Details
-
DEFAULT
Represents a default aggregate cloner.
-
-
Method Details
-
newBuilder
Begins constructing a new aggregate cloner.- Returns:
- A builder for a new aggregate cloner.
-
getCloners
Retrieves a view of the current list of cloners.- Returns:
- Current cloners.
-
canClone
Description copied from interface:ClonerDetermine whether the current cloner can clone the given object. -
clone
Description copied from interface:ClonerPerform the clone.This method should never be called unless a corresponding
Cloner.canClone(Object)returns TRUE.
-