- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 915 for nature (0.15 seconds)
-
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
public B withFeatures(Iterable<? extends Feature<?>> features) { for (Feature<?> feature : features) { this.features.add(feature); } return self(); } public Set<Feature<?>> getFeatures() { return unmodifiableSet(features); } // Name private @Nullable String name; /** Configures this builder produce a TestSuite with the given name. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 10.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
} @Override public Iterable<E> order(List<E> insertionOrder) { return gen.order(insertionOrder); } } private static Set<Feature<?>> computeReserializedCollectionFeatures(Set<Feature<?>> features) { Set<Feature<?>> derivedFeatures = new HashSet<>(features); derivedFeatures.remove(SERIALIZABLE); derivedFeatures.remove(SERIALIZABLE_INCLUDING_VIEWS); return derivedFeatures; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* completes. Cancelling the supplied future will also cancel the returned future, but cancelling * the returned future will have no effect on the supplied future. * * @since 15.0 */ public static <V extends @Nullable Object> ListenableFuture<V> nonCancellationPropagating( ListenableFuture<V> future) { if (future.isDone()) { return future; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 64.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java
.suppressing(parentBuilder.getSuppressedTests()) .createTestSuite(); } } @Override Set<Feature<?>> computeMultimapGetFeatures(Set<Feature<?>> multimapFeatures) { Set<Feature<?>> derivedFeatures = super.computeMultimapGetFeatures(multimapFeatures); if (derivedFeatures.contains(CollectionFeature.SUPPORTS_ADD)) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java
@NullUnmarked public class UntrustedInputFutureTest extends AbstractAbstractFutureTest { @Override AbstractFuture<Integer> newDelegate() { AbstractFuture<Integer> future = new AbstractFuture<Integer>() {}; assertFalse(future instanceof TrustedFuture); // sanity check return future; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 1.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue(); assertSuccessful(future, 1); } public void testSetFutureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setFuture(null)); assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 15.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
/** * Retrieves the result of a {@code Future} known to be done but uses the {@code get(long, * TimeUnit)} overload in order to test that method. */ static <V extends @Nullable Object> V getDoneFromTimeoutOverload(Future<V> future) throws ExecutionException { checkState(future.isDone(), "Future was expected to be done: %s", future); try { return getUninterruptibly(future, 0, SECONDS); } catch (TimeoutException e) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
* ordering. * * @throws NullPointerException if any element is null */ public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2, E e3) { return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); } /** * Returns an immutable sorted multiset containing the given elements sorted by their natural * ordering. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
SettableFuture<Integer> future = SettableFuture.create(); assertTrue(future.set(42)); // Later attempts to set the future should return false. assertFalse(future.set(23)); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.create())); // Check that the future has been set properly. assertTrue(future.isDone()); assertFalse(future.isCancelled());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 17:49:12 GMT 2025 - 7.3K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AbstractFutureState.java
if (future.listenersField == expect) { future.listenersField = update; return true; } return false; } } @Override @Nullable Listener gasListeners(AbstractFutureState<?> future, Listener update) { synchronized (future) { Listener old = future.listenersField; if (old != update) { future.listenersField = update;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 34.8K bytes - Click Count (0)