- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 127 for check (0.32 sec)
-
android/guava/src/com/google/common/base/SmallCharMatcher.java
int index = startingIndex; do { if (table[index] == 0) { // Check for empty. return false; } else if (table[index] == c) { // Check for match. return true; } else { // Linear probing. index = (index + 1) & mask; } // Check to see if we wrapped around the whole table. } while (index != startingIndex); return false; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
assertEquals(elements, targetList); } } private <T extends @Nullable Object> void actsLikeIteratorHelper(final List<T> list) { // Check with modifiable copies of the list new PeekingIteratorTester<T>(list).test(); // Check with unmodifiable lists new IteratorTester<T>( list.size() * 2 + 2, UNMODIFIABLE, list, IteratorTester.KnownOrder.KNOWN_ORDER) { @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/StandardMutableNetwork.java
checkNotNull(edge, "edge"); N nodeU = edgeToReferenceNode.get(edge); if (nodeU == null) { return false; } // requireNonNull is safe because of the edgeToReferenceNode check above. NetworkConnections<N, E> connectionsU = requireNonNull(nodeConnections.get(nodeU)); N nodeV = connectionsU.adjacentNode(edge); NetworkConnections<N, E> connectionsV = requireNonNull(nodeConnections.get(nodeV));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks)); // check idempotency Iterable<?> locks2 = striped.bulkGet(objects); assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2)); } } } /** Checks idempotency, and that we observe the promised number of stripes. */ public void testBasicInvariants() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java
public ThreadFactory build() { return doBuild(this); } // Split out so that the anonymous ThreadFactory can't contain a reference back to the builder. // At least, I assume that's why. TODO(cpovirk): Check, and maybe add a test for this. private static ThreadFactory doBuild(ThreadFactoryBuilder builder) { String nameFormat = builder.nameFormat; Boolean daemon = builder.daemon; Integer priority = builder.priority;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 10 21:56:03 GMT 2023 - 7.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
} @Override public int size() { return Ints.saturatedCast(size); } @Override public int count(@CheckForNull Object element) { // isActuallyE checks for null, but we check explicitly to help nullness checkers. if (element == null || !isActuallyE(element)) { return 0; } Enum<?> e = (Enum<?>) element; return counts[e.ordinal()]; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
// Check that we can find a resource if it is visible to the context class // loader, even if it is not visible to the loader of the Resources class. File tempFile = createTempFile(); PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); writer.println("rud a chur ar an méar fhada"); writer.close(); // First check that we can't find it without setting the context loader.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java
@Override AbstractFuture<Integer> newDelegate() { AbstractFuture<Integer> future = new AbstractFuture<Integer>() {}; assertFalse(future instanceof TrustedFuture); // sanity check return future; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 1.2K bytes - Viewed (1) -
guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java
@Override AbstractFuture<Integer> newDelegate() { AbstractFuture<Integer> future = new TrustedFuture<Integer>() {}; assertTrue(future instanceof TrustedFuture); // sanity check return future; }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java
@Override AbstractFuture<Integer> newDelegate() { AbstractFuture<Integer> future = new TrustedFuture<Integer>() {}; assertTrue(future instanceof TrustedFuture); // sanity check return future; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 1.2K bytes - Viewed (0)