de.caff.generics.converter

## Class OrderedPairFirstExtractor<T>

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

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

      public class OrderedPairFirstExtractor<T>
      extends java.lang.Object
      implements Function1<T,OrderedPair<T,?>>

  A type converter which extracts the first element of a pair.
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OrderedPairFirstExtractor()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `apply(OrderedPair<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

    - #### OrderedPairFirstExtractor

          public OrderedPairFirstExtractor()

  - ### Method Detail

    - #### apply

          public T apply(OrderedPair<T,?> object)

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