Пример #1
0
 public Cursor2List(final Class<T> clazz) {
   try {
     converter = Either.Left(clazz.getConstructor(CursorGetter.class));
   } catch (final NoSuchMethodException e) {
     throw new IllegalArgumentException(
         "go and implement a the constructor "
             + clazz.getCanonicalName()
             + "(CursorWrapper.CursorGetter)",
         e);
   }
 }
Пример #2
0
 public Cursor2List(@NonNull final CursorWrapper.CursorConverter<T> converter) {
   this.converter = Either.Right(converter);
 }