class CollectionHelper {

    public static <T> Iterable<T> limit(final Iterable<T> iterable, final int limit) {
        Validate.notNull(iterable, "iterable must not be null");
        Validate.isTrue(limit >= 0, "limit must be greater/equal zero");
        return () -> limit(iterable.iterator(), limit);
    }

    private  CollectionHelper();

}