- Sort Score
- Num 10 results
- Language All
Results 441 - 450 of 1,431 for instanceOf (0.05 seconds)
-
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder.removalListener(testListener)); } public void testValuesIsNotASet() { assertThat(CacheBuilder.newBuilder().build().asMap().values() instanceof Set).isFalse(); } @GwtIncompatible // CacheTesting public void testNullCache() { CountingRemovalListener<Object, Object> listener = countingRemovalListener();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 25.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
* original {@code ListenableFuture}. */ public static <V extends @Nullable Object> FluentFuture<V> from(ListenableFuture<V> future) { return future instanceof FluentFuture ? (FluentFuture<V>) future : new ForwardingFluentFuture<V>(future); } /** * Simply returns its argument. * * @deprecated no need to use thisCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 19.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
try { LocalArtifactRepository ideWorkspace = plexus.lookup(LocalArtifactRepository.class, LocalArtifactRepository.IDE_WORKSPACE); if (request.getLocalRepository() instanceof DelegatingLocalArtifactRepository delegatingLocalRepository) { LocalArtifactRepository orig = delegatingLocalRepository.getIdeWorkspace(); delegatingLocalRepository.setIdeWorkspace(ideWorkspace);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 31.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} private <T> T pickInstance(T[] instances, T defaultValue) { return pickInstance(Arrays.asList(instances), defaultValue); } private <T> T pickInstance(Collection<T> instances, T defaultValue) { if (instances.isEmpty()) { return defaultValue; } // generateInt() is 1-based. return Iterables.get(instances, (generateInt() - 1) % instances.size()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 28.7K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
return copyOfInternal(map, comparator); } private static <K, V> ImmutableSortedMap<K, V> copyOfInternal( Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { if (map instanceof ImmutableSortedMap) { // TODO: Prove that this cast is safe, even though // Collections.unmodifiableSortedMap requires the same key type. @SuppressWarnings("unchecked")
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 16.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
checkNotNull(rangeSet); if (rangeSet.isEmpty()) { return of(); } else if (rangeSet.encloses(Range.all())) { return all(); } if (rangeSet instanceof ImmutableRangeSet) { ImmutableRangeSet<C> immutableRangeSet = (ImmutableRangeSet<C>) rangeSet; if (!immutableRangeSet.isPartialView()) { return immutableRangeSet; } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
} @Override public void init(Context context) throws Exception {} @Override public void onEvent(Object event) throws Exception { if (event instanceof ExecutionEvent executionEvent) { ReactorReader reactorReader = lookup.lookup(ReactorReader.class); reactorReader.processEvent(executionEvent); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* is used to construct the sample instances. In case of tie, the candidate constructors or * factories are tried one after another until one can be used to construct sample * instances. * <li>For the constructor or static factory method used to construct instances, it's checked * that when equal parameters are passed, the result instance should also be equal; and vice * versa.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
*/ public static <E> ImmutableSortedMultiset<E> copyOf( Comparator<? super E> comparator, Iterable<? extends E> elements) { if (elements instanceof ImmutableSortedMultiset) { @SuppressWarnings("unchecked") // immutable collections are always safe for covariant casts ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) elements;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
} cli.cli(request); cli.logging(request); TransferListener transferListener = cli.populateRequest(request).getTransferListener(); if (transferListener instanceof SimplexTransferListener simplexTransferListener) { transferListener = simplexTransferListener.getDelegate(); } assertEquals(expectedSubClass, transferListener.getClass()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 30.9K bytes - Click Count (0)