/** * Evaluates this lazy value and caches it, when called the first time. * On subsequent calls, returns the cached value. * * @return the lazy evaluated value */ @Override public T get() { return (supplier == null) ? value : computeValue(); }
/** * Evaluates this lazy value and caches it, when called the first time. * On subsequent calls, returns the cached value. * * @return the lazy evaluated value */ @Override public T get() { return (supplier == null) ? value : computeValue(); }