Home
last modified time | relevance | path

Searched refs:computingFunction (Results 1 – 9 of 9) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DComputingConcurrentHashMapTest.java55 MapMaker maker, Function<? super K, ? extends V> computingFunction) { in makeComputingMap() argument
57 maker, computingFunction); in makeComputingMap()
61 MapMaker maker, Function<? super K, ? extends V> computingFunction) { in makeAdaptedMap() argument
63 maker, computingFunction); in makeAdaptedMap()
75 Function<Object, Object> computingFunction = Functions.identity(); in testComputingFunction() local
77 makeComputingMap(createMapMaker(), computingFunction); in testComputingFunction()
78 assertSame(computingFunction, map.computingFunction); in testComputingFunction()
84 CountingFunction computingFunction = new CountingFunction(); in testCompute() local
86 makeComputingMap(createMapMaker(), computingFunction); in testCompute()
87 assertEquals(0, computingFunction.getCount()); in testCompute()
[all …]
DMapMakerTest.java59 Function<String, String> computingFunction = new DelayingIdentityLoader<String>(computingLatch); in testRemovalNotification_clear() local
66 .makeComputingMap(computingFunction); in testRemovalNotification_clear()
/external/guava/guava/src/com/google/common/collect/
DComputingConcurrentHashMap.java43 final Function<? super K, ? extends V> computingFunction; field in ComputingConcurrentHashMap
50 Function<? super K, ? extends V> computingFunction) { in ComputingConcurrentHashMap() argument
52 this.computingFunction = checkNotNull(computingFunction); in ComputingConcurrentHashMap()
67 return segmentFor(hash).getOrCompute(key, hash, computingFunction); in getOrCompute()
76 V getOrCompute(K key, int hash, Function<? super K, ? extends V> computingFunction) in getOrCompute() argument
134 computingValueReference = new ComputingValueReference<K, V>(computingFunction); in getOrCompute()
286 final Function<? super K, ? extends V> computingFunction; field in ComputingConcurrentHashMap.ComputingValueReference
291 public ComputingValueReference(Function<? super K, ? extends V> computingFunction) { in ComputingValueReference() argument
292 this.computingFunction = computingFunction; in ComputingValueReference()
356 value = computingFunction.apply(key); in compute()
[all …]
DMapMaker.java584 Function<? super K, ? extends V> computingFunction) { in makeComputingMap() argument
586 ? new MapMaker.ComputingMapAdapter<K, V>(this, computingFunction) in makeComputingMap()
587 : new NullComputingConcurrentMap<K, V>(this, computingFunction); in makeComputingMap()
833 final Function<? super K, ? extends V> computingFunction; field in MapMaker.NullComputingConcurrentMap
836 MapMaker mapMaker, Function<? super K, ? extends V> computingFunction) { in NullComputingConcurrentMap() argument
838 this.computingFunction = checkNotNull(computingFunction); in NullComputingConcurrentMap()
846 checkNotNull(value, "%s returned null for key %s.", computingFunction, key); in get()
854 return computingFunction.apply(key); in compute()
876 Function<? super K, ? extends V> computingFunction) { in ComputingMapAdapter() argument
877 super(mapMaker, computingFunction); in ComputingMapAdapter()
[all …]
DGenericMapMaker.java150 Function<? super K, ? extends V> computingFunction); in makeComputingMap() argument
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheLoader.java109 private final Function<K, V> computingFunction; field in CacheLoader.FunctionToCacheLoader
111 public FunctionToCacheLoader(Function<K, V> computingFunction) { in FunctionToCacheLoader() argument
112 this.computingFunction = checkNotNull(computingFunction); in FunctionToCacheLoader()
117 return computingFunction.apply(checkNotNull(key)); in load()
/external/guava/guava/src/com/google/common/cache/
DCacheLoader.java143 private final Function<K, V> computingFunction; field in CacheLoader.FunctionToCacheLoader
145 public FunctionToCacheLoader(Function<K, V> computingFunction) { in FunctionToCacheLoader() argument
146 this.computingFunction = checkNotNull(computingFunction); in FunctionToCacheLoader()
151 return computingFunction.apply(checkNotNull(key)); in load()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DGenericMapMaker.java87 Function<? super K, ? extends V> computingFunction); in makeComputingMap() argument
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java389 CacheLoader<String, String> computingFunction = new CacheLoader<String, String>() { in testRemovalNotification_clear() local
402 .build(computingFunction); in testRemovalNotification_clear()