Class LazyEvaluationStore<T>

Object
LazyEvaluationStore<T>
Type Parameters:
T - item-type in the store
All Implemented Interfaces:
NamedProvider<T>, NamedProviderStore<T>

public class LazyEvaluationStore<T> extends Object implements NamedProviderStore<T>
Lazily delays evaluating items until when they are first retrieved.

The StoreSupplier is called only upon first retieval, and thereafter stored.

Author:
Owen Feehan
  • Constructor Details

    • LazyEvaluationStore

      public LazyEvaluationStore(String storeDisplayName)
      Creates a new LazyEvaluationStore instance.
      Parameters:
      storeDisplayName - A user-friendly name to describe the store, when printing its contents in a string-representation.
  • Method Details