- Sort Score
- Result 10 results
- Languages All
Results 1241 - 1250 of 4,785 for new (0.03 sec)
-
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.<Foo>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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.3K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java
Map<String, ArtifactRepository> versionIndex = new HashMap<>(); Metadata metadata = new DefaultMetadata( request.getArtifact().getGroupId(), request.getArtifact().getArtifactId(), MAVEN_METADATA_XML, Metadata.Nature.RELEASE_OR_SNAPSHOT); List<MetadataRequest> metadataRequests = new ArrayList<>(request.getRepositories().size());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
/** * Creates a new min-max priority queue with default settings: natural order, no maximum size, no * initial contents, and an initial expected size of 11. */ public static <E extends Comparable<E>> MinMaxPriorityQueue<E> create() { return new Builder<Comparable<E>>(Ordering.natural()).create(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 34.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
private static final ImmutableDoubleArray EMPTY = new ImmutableDoubleArray(new double[0]); /** Returns the empty array. */ public static ImmutableDoubleArray of() { return EMPTY; } /** Returns an immutable array containing a single value. */ public static ImmutableDoubleArray of(double e0) { return new ImmutableDoubleArray(new double[] {e0}); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 23K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java
} // From https://github.com/BrandonHaynes/siphash-csharp/blob/master/tests/Tests.cs public void testKnownValues() { assertSip(new byte[] {}, 0x726fdb47dd0e0e31L); assertSip(new byte[] {0x61}, 0x2ba3e8e9a71148caL); assertSip(new byte[1000000], 0x28205108397aa742L); assertSip("12345678", 0x02130609caea37ebL); assertSip("abcdef", 0x2a6e77e733c7c05dL); assertSip("SipHash", 0x8325093242a96f60L); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/SipHashFunctionTest.java
} // From https://github.com/BrandonHaynes/siphash-csharp/blob/master/tests/Tests.cs public void testKnownValues() { assertSip(new byte[] {}, 0x726fdb47dd0e0e31L); assertSip(new byte[] {0x61}, 0x2ba3e8e9a71148caL); assertSip(new byte[1000000], 0x28205108397aa742L); assertSip("12345678", 0x02130609caea37ebL); assertSip("abcdef", 0x2a6e77e733c7c05dL); assertSip("SipHash", 0x8325093242a96f60L); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java
final BufferedInputStream bis = new BufferedInputStream(in); final String encoding = xmlExtractor.getEncoding(bis); CloseableUtil.closeQuietly(bis); assertEquals("UTF-16BE", encoding); } public void test_getEncoding_none() { final InputStream in = new ByteArrayInputStream("<hoge></hoge>".getBytes()); final BufferedInputStream bis = new BufferedInputStream(in);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java
final ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .cipherSuites(customCipherSuites.toArray(new CipherSuite[0])) .build(); X509TrustManager trustManager = defaultTrustManager(); SSLSocketFactory sslSocketFactory = defaultSslSocketFactory(trustManager); SSLSocketFactory customSslSocketFactory = new DelegatingSSLSocketFactory(sslSocketFactory) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Mar 14 21:57:42 UTC 2019 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(ForwardingSortedSetTest.class); suite.addTest( SortedSetTestSuiteBuilder.using( new TestStringSortedSetGenerator() { @Override protected SortedSet<String> create(String[] elements) { return new StandardImplForwardingSortedSet<>(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java
Collection<String> activatedIds = new HashSet<>(context.getActiveProfileIds()); Collection<String> deactivatedIds = new HashSet<>(context.getInactiveProfileIds()); List<Profile> activeProfiles = new ArrayList<>(profiles.size()); List<Profile> activePomProfilesByDefault = new ArrayList<>(); boolean activatedPomProfileNotByDefault = false;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.3K bytes - Viewed (0)