Package org.atlanmod.commons.function
Interface Copier<T>
-
- Type Parameters:
T- the type of the copied object
- All Superinterfaces:
BiConsumer<T,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@ParametersAreNonnullByDefault @FunctionalInterface public interface Copier<T> extends BiConsumer<T,T>
A specializedBiConsumerable to copy an object to another of the same type.- See Also:
BiConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(T source, T target)voidcopy(T source, T target)Copies all the contents from thesourceto thetarget.-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-