- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for HOLDER (0.09 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
public void testTransformValueRemainsMemoized() throws Exception { class Holder { int value = 2; } Holder holder = new Holder(); // This function adds the holder's value to the input value. Function<Integer, Integer> adder = from -> from + holder.value; // Since holder.value is 2, applying 4 should yield 6. assertEquals(6, adder.apply(4).intValue());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
public void testTransformValueRemainsMemoized() throws Exception { class Holder { int value = 2; } Holder holder = new Holder(); // This function adds the holder's value to the input value. Function<Integer, Integer> adder = from -> from + holder.value; // Since holder.value is 2, applying 4 should yield 6. assertEquals(6, adder.apply(4).intValue());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0)