- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 3,237 for New (0.01 seconds)
-
android/guava/src/com/google/common/cache/AbstractCache.java
invalidate(key); } } @Override public void invalidateAll() { throw new UnsupportedOperationException(); } @Override public CacheStats stats() { throw new UnsupportedOperationException(); } @Override public ConcurrentMap<K, V> asMap() { throw new UnsupportedOperationException(); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
sumOfSquaresOfDeltas = t; } return new MeanAndVariance(mean, sumOfSquaresOfDeltas / values.length); } }, KNUTH { @Override MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm) { if (meanAlgorithm != MeanAlgorithm.KNUTH) { throw new SkipThisScenarioException(); } double mean = values[0];Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
@J2ktIncompatible @GwtIncompatible // suite @AndroidIncompatible // test-suite builders public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest( SetTestSuiteBuilder.using(new ImmutableSetCopyOfGenerator()) .named(ImmutableSetTest.class.getName()) .withFeatures( CollectionSize.ANY,
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 14.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* * {@snippet : * final WeakHashMap<Object, Object> map = new WeakHashMap<>(); * map.put(new Object(), Boolean.TRUE); * GcFinalization.awaitDone(new FinalizationPredicate() { * public boolean isDone() { * return map.isEmpty(); * } * }); * } * * <p>Even if your non-test code does not use finalization, you can use this class to test forCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 11.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); long numOfByteSkipped = in.skip(2); assertEquals(2, numOfByteSkipped); byte[] buf = new byte[4]; int numOfByteRead = in.read(buf, 0, buf.length); assertEquals(2, numOfByteRead); assertEquals(expectedHash, in.hash()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java
} @Test void testValidate() { Artifact plugin = new DefaultArtifact( "org.apache.maven.its.plugins", "maven-it-plugin", "0.1", "compile", "jar", null, new DefaultArtifactHandler("ignore")); PluginDescriptor descriptor = new PluginDescriptor();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
int expectedOccupiedDepth) { AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly( startThread( new Runnable() { @Override public void run() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
int expectedOccupiedDepth) { AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly( startThread( new Runnable() { @Override public void run() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertFalse(future.set(new Foo())); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.create())); // Check that the future has been set properly. assertFalse(future.isDone()); assertFalse(future.isCancelled()); assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS)); FooChild value = new FooChild(); nested.set(value);
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) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java
when(mockedPlexusContainer.lookupMap(Lifecycle.class)).thenReturn(lifeCycles); DefaultLifecycles dl = new DefaultLifecycles( new DefaultLifecycleRegistry( List.of(new DefaultLifecycleRegistry.LifecycleWrapperProvider(mockedPlexusContainer))), new DefaultLookup(mockedPlexusContainer)); assertEquals("clean", dl.getLifeCycles().get(0).getId());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 3.9K bytes - Click Count (0)