- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,084 for it (0.16 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
private final FakeStopwatch stopwatch = new FakeStopwatch(); public void testSimple() { RateLimiter limiter = RateLimiter.create(5.0, stopwatch); limiter.acquire(); // R0.00, since it's the first request limiter.acquire(); // R0.20 limiter.acquire(); // R0.20 assertEvents("R0.00", "R0.20", "R0.20"); } public void testImmediateTryAcquire() { RateLimiter r = RateLimiter.create(1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSink.java
import java.nio.charset.Charset; /** * A destination to which bytes can be written, such as a file. Unlike an {@link OutputStream}, a * {@code ByteSink} is not an open, stateful stream that can be written to and closed. Instead, it * is an immutable <i>supplier</i> of {@code OutputStream} instances. * * <p>{@code ByteSink} provides two kinds of methods: * * <ul>
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 5.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
/* * © 2017 AgNO3 Gmbh & Co. KG * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon May 23 14:35:20 GMT 2022 - 6.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
classLoader = getClass().getClassLoader(); } try { for (Iterator<URL> it = classLoader .getResources("META-INF/maven/org.apache.maven.api.di.Inject") .asIterator(); it.hasNext(); ) { URL url = it.next(); List<String> lines; try (InputStream is = url.openStream();
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 14:13:36 GMT 2024 - 8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/PairedStats.java
* round-tripping through java serialization. However, floating point rounding errors mean that it * may be false for some instances where the statistics are mathematically equal, including * instances constructed from the same values in a different order... or (in the general case) * even in the same order. (It is guaranteed to return true for instances constructed from the
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 17:02:53 GMT 2023 - 12.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
* this builder to sort entries by value. * * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to * build multiple bimaps in series. Each bimap is a superset of the bimaps created before it. * * @since 2.0 */ public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> { /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
InetAddress addr = null; try { addr = InetAddresses.forString(host); } catch (IllegalArgumentException e) { // It is not an IPv4 or IPv6 literal } if (addr != null) { return new HostSpecifier(InetAddresses.toUriString(addr)); } // It is not any kind of IP address; must be a domain name or invalid. // TODO(user): different versions of this for different factories?
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 05 09:18:40 GMT 2023 - 6K bytes - Viewed (0) -
android/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 May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
// ternaries introduce their own problems. because of the ternary (which requires a boxing // operation) no overload can be selected in phase 1. and in phase 2 it is ambiguous since it // matches with the second parameter being boxed and without it being boxed. The cast to Object // avoids this. Preconditions.checkState(aBoolean, "", aBoolean ? "" : anInt, (Object) anInt);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 19.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
* Object)} are even more convenient. * * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to * build multiple tables in series. Each table is a superset of the tables created before it. * * @since 11.0 */ @DoNotMock public static final class Builder<R, C, V> {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 17.6K bytes - Viewed (0)