@Test public void testGetReturnsSameValue() { final Lazy<Integer> l = Lazy.of(() -> nextVal++); assertEquals(l.apply(), l.apply()); }
@Override public T apply() { return get.apply(); }
LazyImpl implements Lazy<T> { @Override public T apply() { return get.apply(); } }
LazyImpl implements Lazy<T> { @Override public T apply() { return get.apply(); } LazyImpl(Functions.F0<T> get); }
LazyImpl implements Lazy<T> { @Override public T apply() { return get.apply(); } LazyImpl(Functions.F0<T> get); @Override T apply(); @Override String toString(); }
LazyImpl implements Lazy<T> { @Override public T apply() { return get.apply(); } LazyImpl(Functions.F0<T> get); @Override T apply(); @Override String toString();  }