- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,414 for Integer (0.13 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
final ConcurrentMap<String, Integer> delegate = new ConcurrentHashMap<>(); @Override protected ConcurrentMap<String, Integer> delegate() { return delegate; } } public void testPutIfAbsent() { TestMap map = new TestMap(); map.put("foo", 1); assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
*/ @GwtCompatible(emulated = true) abstract class AbstractAbstractFutureTest extends TestCase { private TestedFuture<Integer> future; private AbstractFuture<Integer> delegate; abstract AbstractFuture<Integer> newDelegate(); @Override protected void setUp() { future = TestedFuture.create(); delegate = newDelegate(); } public void testPending() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
} private static Function<Integer, Integer> add(final int delta) { return new Function<Integer, Integer>() { @Override public Integer apply(Integer input) { return input + delta; } }; } private static AsyncCallable<Integer> asyncAdd( final ListenableFuture<Integer> future, final int delta, final Executor executor) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
return tmp; } private static final Comparator<Integer> NATURAL_INTEGER = new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return o1.compareTo(o2); } }; @Benchmark int arraysSortOrderingFromNatural(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { Integer[] copy = inputArrays[i & 0xFF].clone();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/InternersTest.java
} public void testWeak_afterGC() throws InterruptedException { Integer canonical = new Integer(5); Integer not = new Integer(5); Interner<Integer> pool = Interners.newWeakInterner(); assertSame(canonical, pool.intern(canonical)); WeakReference<Integer> signal = new WeakReference<>(canonical); canonical = null; // Hint to the JIT that canonical is unreachable
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
ImmutableList<Integer>[] array = (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)}; TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; ImmutableTypeToInstanceMap<Iterable<?>[]> map = ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build(); assertEquals(1, map.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractBiMapTest.java
public void testIdentityKeySetIteratorRemove() { BiMap<Integer, String> bimap = new AbstractBiMap<Integer, String>( new IdentityHashMap<Integer, String>(), new IdentityHashMap<String, Integer>()) {}; bimap.put(1, "one"); bimap.put(2, "two"); bimap.put(3, "three"); Iterator<Integer> iterator = bimap.keySet().iterator(); iterator.next(); iterator.next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu May 14 14:52:51 UTC 2020 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractBiMapTest.java
public void testIdentityKeySetIteratorRemove() { BiMap<Integer, String> bimap = new AbstractBiMap<Integer, String>( new IdentityHashMap<Integer, String>(), new IdentityHashMap<String, Integer>()) {}; bimap.put(1, "one"); bimap.put(2, "two"); bimap.put(3, "three"); Iterator<Integer> iterator = bimap.keySet().iterator(); iterator.next(); iterator.next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu May 14 14:52:51 UTC 2020 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/RegularImmutableMapMapInterfaceTest.java
import java.util.Map; @GwtCompatible public class RegularImmutableMapMapInterfaceTest extends AbstractImmutableMapMapInterfaceTest<String, Integer> { @Override protected Map<String, Integer> makeEmptyMap() { return ImmutableMap.of(); } @Override protected Map<String, Integer> makePopulatedMap() { return ImmutableMap.of("one", 1, "two", 2, "three", 3); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 09 02:18:08 UTC 2022 - 1.2K bytes - Viewed (0)