org.apache.cayenne.reflect

## Class PojoMapper<T>

- java.lang.Object
- - org.apache.cayenne.reflect.PojoMapper<T>

- Type Parameters:
    `T` - type of object to produce
  All Implemented Interfaces:
    Function<Object[],T>

      public class PojoMapper<T>
      extends Object
      implements Function<Object[],T>

  Simple mapper of Object[] to POJO class. This class relies on field order, so use with caution.
  Since:
    4.2

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PojoMapper(Class<T> type)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `apply(Object[] data)`

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

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

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

      `andThen, compose, identity`

- - ### Constructor Detail

    - #### PojoMapper

          public PojoMapper(Class<T> type)

  - ### Method Detail

    - #### apply

          public T apply(Object[] data)

      Specified by:
        `apply` in interface `Function<Object[],T>`

Copyright © 2001–2021 Apache Cayenne. All rights reserved.