- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 127 for initial (0.17 sec)
-
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
} public void testAdd_laterFewWithSuccess() { int INITIAL_COUNT = 32; int COUNT_TO_ADD = 400; AtomicInteger initial = new AtomicInteger(INITIAL_COUNT); when(backingMap.get(KEY)).thenReturn(initial); assertEquals(INITIAL_COUNT, multiset.add(KEY, COUNT_TO_ADD)); assertEquals(INITIAL_COUNT + COUNT_TO_ADD, initial.get()); } public void testAdd_laterFewWithOverflow() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Atomics.java
* Creates an {@code AtomicReference} instance with no initial value. * * @return a new {@code AtomicReference} with no initial value */ public static <V> AtomicReference<@Nullable V> newReference() { return new AtomicReference<>(); } /** * Creates an {@code AtomicReference} instance with the given initial value. * * @param initialValue the initial value
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sun Jun 20 10:45:35 GMT 2021 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
/** * Creates a {@code MonitorBasedPriorityBlockingQueue} with the default initial capacity (11) that * orders its elements according to their {@linkplain Comparable natural ordering}. */ public MonitorBasedPriorityBlockingQueue() { q = new PriorityQueue<E>(); } /** * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity that
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 19.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/SipHashFunction.java
private final int d; // Four 64-bit words of internal state. // The initial state corresponds to the ASCII string "somepseudorandomlygeneratedbytes", // big-endian encoded. There is nothing special about this value; the only requirement // was some asymmetry so that the initial v0 and v1 differ from v2 and v3. private long v0 = 0x736f6d6570736575L; private long v1 = 0x646f72616e646f6dL;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 20 18:43:59 GMT 2021 - 5.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} /** Tests a failure caused by fix to childless uncle issue. */ public void testIteratorRegressionChildlessUncle() { final ArrayList<Integer> initial = Lists.newArrayList(1, 15, 13, 8, 9, 10, 11, 14); MinMaxPriorityQueue<Integer> q = MinMaxPriorityQueue.create(initial); assertIntact(q); q.remove(9); q.remove(11); q.remove(10); // Now we're in the critical state: [1, 15, 13, 8, 14]
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 36.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ArrayListMultimap.java
// Default from ArrayList private static final int DEFAULT_VALUES_PER_KEY = 3; @VisibleForTesting transient int expectedValuesPerKey; /** * Creates a new, empty {@code ArrayListMultimap} with the default initial capacities. * * <p>This method will soon be deprecated in favor of {@code * MultimapBuilder.hashKeys().arrayListValues().build()}. */ public static <K extends @Nullable Object, V extends @Nullable Object>
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractIterator.java
/** * Returns the next element. <b>Note:</b> the implementation must call {@link #endOfData()} when * there are no elements left in the iteration. Failure to do so could result in an infinite loop. * * <p>The initial invocation of {@link #hasNext()} or {@link #next()} calls this method, as does * the first invocation of {@code hasNext} or {@code next} following each successful call to
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Mar 18 02:04:10 GMT 2022 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
ImmutableSet.Builder<Long> testLongsBuilder = ImmutableSet.builder(); ImmutableSet.Builder<BigInteger> testBigIntegersBuilder = ImmutableSet.builder(); // The values here look like 111...11101...010 in binary, where the initial 111...1110 takes // up exactly as many bits as can be represented in the significand (24 for float, 53 for // double). That final 0 should be rounded up to 1 because the remaining bits make that number // slightly nearer.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashSet.java
CompactHashSet<E> set = createWithExpectedSize(elements.length); Collections.addAll(set, elements); return set; } /** * Creates a {@code CompactHashSet} instance, with a high enough "initial capacity" that it * <i>should</i> hold {@code expectedSize} elements without growth. * * @param expectedSize the number of elements you expect to add to the returned set
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Feb 05 21:38:59 GMT 2024 - 24.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashMap.java
CompactLinkedHashMap<K, V> create() { return new CompactLinkedHashMap<>(); } /** * Creates a {@code CompactLinkedHashMap} instance, with a high enough "initial capacity" that it * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures. * * @param expectedSize the number of elements you expect to add to the returned set
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 10.2K bytes - Viewed (0)