Class CachingIterable<T>

java.lang.Object
org.aksw.commons.collections.cache.CachingIterable<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public class CachingIterable<T> extends Object implements Iterable<T>
An iterable over an iterator that caches the iterator's results.
Author:
raven
  • Field Details

    • delegate

      protected Iterator<T> delegate
    • cache

      protected Cache<T> cache
  • Constructor Details

    • CachingIterable

      public CachingIterable(Iterator<T> delegate)
    • CachingIterable

      public CachingIterable(Iterator<T> delegate, Cache<T> cache)
  • Method Details