public static <T> BatchingVisitableView<T> of(final BatchingVisitable<T> underlyingVisitable) { Preconditions.checkNotNull(underlyingVisitable, "Cannot wrap a null visitable"); return new BatchingVisitableView<T>() { @Override protected BatchingVisitable<T> delegate() { return BatchingVisitables.wrap(underlyingVisitable); } }; }
public static <T> BatchingVisitableView<T> of(final BatchingVisitable<T> underlyingVisitable) { Preconditions.checkNotNull(underlyingVisitable, "Cannot wrap a null visitable"); return new BatchingVisitableView<T>() { @Override protected BatchingVisitable<T> delegate() { return BatchingVisitables.wrap(underlyingVisitable); } }; }