- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for We (0.13 sec)
-
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
// don't execute 'immediately'. By checking isDone here we avoid that. // A corollary to all that is that we don't need to check isDone inside the loop because if we // get into the loop we know that we weren't done when we entered and therefore we aren't under // an obligation to execute 'immediately'. if (!isDone()) { Listener oldHead = listeners;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
// We're careful to put only K instances in. K[] sortedKs = (K[]) sortedKeys; Arrays.sort(sortedKs, comparator); Object[] sortedValues = new Object[size]; // We might, somehow, be able to reorder values in-place. But it doesn't seem like // there's a way around creating the separate sortedKeys array, and if we're allocating
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 53.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
// Warning: this is broken if size() == 0, so it is critical that we // substitute an empty ImmutableSet to the user in place of this // It's a weird formula, but tests prove it works. int adjust = size() - 1; for (int i = 0; i < axes.size(); i++) { adjust *= 31; adjust = ~~adjust; // in GWT, we have to deal with integer overflow carefully } int hash = 1;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 77.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
} } private static Iterator<Integer> iterateOver(int... values) { // Note: Ints.asList's iterator does not support remove which we need for testing. return new ArrayList<>(Ints.asList(values)).iterator(); } public void testElementsEqual() { Iterable<?> a; Iterable<?> b; // Base case.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 56.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* Don't store a new Iterator until we know the user can't remove() the last returned * element anymore. Otherwise, when we remove from the old iterator, we may be invalidating * the new one. The result is a ConcurrentModificationException or other bad behavior. * * (If we decide that we really, really hate allocating two Iterators per cycle instead of
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 51.1K bytes - Viewed (0)