public static <E> SimpleAdapter<E> decorate(
        final SimpleAdapter<E> adaptee, final Decorator<E> decorator) {

      return new SimpleAdapter<E>() {
        @Override
        public int getSize() {
          return Integer.MAX_VALUE;
        }

        @Override
        public E get(int position) {
          return decorator.decorate(adaptee, position);
        }

        @Override
        public boolean isLazy() {
          // This is never lazy
          return false;
        }
      };
    }
This creates an infinite version of the given SimpleAdapter setting

@param adaptee The source SimpleAdapter to decorate
@param <E> The parameter type for this SimpleAdapter
@return The infinite version of this SimpleAdapter
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/data/SimpleAdapter.java