code: public <T> Function<Cursor, T> getFunctionFor(final Class<T> klass) {
      return new Function<Cursor, T>() {
        private final DaoAdapter<T> mAdapter = getAdapter(klass);
  
        @Override
        public T apply(Cursor c) {
          return mAdapter.fromCursor(c, mAdapter.createInstance());
        }
      };
    }
docs: Method for acquiring the {@link Function} converting the {@link Cursor}
  row into object of specified type.
  
  @param <T> the type of the provided object
  @param klass The {@link Class} of the function output type
  @return the {@link Function} converting {@link Cursor} row into object
  of type T.