de.caff.generics.converter

## Class CopyConverter<T extends Copyable<T>>

- java.lang.Object
- - de.caff.generics.converter.CopyConverter<T>

- All Implemented Interfaces:
    Function1<T,T>, java.util.function.Function<T,T>

      public class CopyConverter<T extends Copyable<T>>
      extends java.lang.Object
      implements Function1<T,T>

  A converter which is creating a copy of the given copyable object.
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CopyConverter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `apply(T object)` Convert an object to another type.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface de.caff.generics.function.Function1

      `after, andThen, applyNonNull, applyOrDefault, fallback, fallback, from, from, nonFragile, nonFragile, nonFragileX, partial, withFallback`

    - ### Methods inherited from interface java.util.function.Function

      `compose, identity`

- - ### Constructor Detail

    - #### CopyConverter

          public CopyConverter()

  - ### Method Detail

    - #### apply

          public T apply(T object)

      Convert an object to another type.
      Specified by:
        `apply` in interface `java.util.function.Function<T extends Copyable<T>,T extends Copyable<T>>`
      Parameters:
        `object` - object to convert
      Returns:
        target object