Package | Description |
---|---|
org.apache.commons.lang3.concurrent |
Provides support classes for multi-threaded programming.
|
Modifier and Type | Class and Description |
---|---|
class |
Memoizer<I,O>
Definition of an interface for a wrapper around a calculation that takes a
single parameter and returns a result.
|
Constructor and Description |
---|
Memoizer(Computable<I,O> computable)
Constructs a Memoizer for the provided Computable calculation.
|
Memoizer(Computable<I,O> computable,
boolean recalculate)
Constructs a Memoizer for the provided Computable calculation, with the
option of whether a Computation that experiences an error should
recalculate on subsequent calls or return the same cached exception.
|
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.