- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for doThing (0.06 sec)
-
android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data); } public void testRfc2202_hmacSha1_case2() { byte[] key = "Jefe".getBytes(UTF_8); String data = "what do ya want for nothing?"; checkSha1("effcdf6ae5eb2fa2d27416d5f184df9c259a7c79", key, data); } public void testRfc2202_hmacSha1_case3() { byte[] key = fillByteArray(20, 0xaa); byte[] data = fillByteArray(50, 0xdd);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 13.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
this.future = future; } @Override public void run() { try { future.get(); } catch (Exception e) { // nothing } } void awaitWaiting() { while (!isBlocked()) { if (getState() == State.TERMINATED) { throw new RuntimeException("Thread exited"); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 46.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Splitter.java
* instead. * * <pre>{@code * // Do NOT do this * Splitter splitter = Splitter.on('/'); * splitter.trimResults(); // does nothing! * return splitter.split("wrong / wrong / wrong"); * }</pre> * * <p>For separator-based splitters that do not use {@code omitEmptyStrings}, an input string
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 23.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Optional.java
import java.util.Set; import javax.annotation.CheckForNull; /** * An immutable object that may contain a non-null reference to another object. Each instance of * this type either contains a non-null reference, or contains nothing (in which case we say that * the reference is "absent"); it is never said to "contain {@code null}". * * <p>A non-null {@code Optional<T>} reference can be used as a replacement for a nullable {@code T}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 13K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostAndPort.java
* * @param hostPortString the input string to parse. * @return if parsing was successful, a populated HostAndPort object. * @throws IllegalArgumentException if nothing meaningful could be parsed. */ @CanIgnoreReturnValue // TODO(b/219820829): consider removing public static HostAndPort fromString(String hostPortString) { checkNotNull(hostPortString); String host;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Aug 22 20:55:57 UTC 2023 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
String test = "Test string for NullOutputStream"; byte[] bytes = test.getBytes(Charsets.US_ASCII); nos.write(bytes); nos.write(bytes, 2, 10); nos.write(bytes, bytes.length - 5, 5); // nothing really to assert? assertSame(ByteStreams.nullOutputStream(), ByteStreams.nullOutputStream()); } public void testNullOutputStream_exceptions() throws Exception {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 21.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
Thread.yield(); long d = ns - (System.nanoTime() - startTime); if (d > 0L) millis = d / (1000 * 1000); else break; } } /** Waits out termination of a thread pool or fails doing so. */ void joinPool(ExecutorService exec) { try { exec.shutdown(); assertTrue( "ExecutorService did not terminate in a timely manner",
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 37.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LongMathTest.java
Double expectedDouble = null; try { expectedDouble = BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), UNNECESSARY); } catch (ArithmeticException expected) { // do nothing } if (expectedDouble != null) { assertThat(LongMath.roundToDouble(candidate, UNNECESSARY)).isEqualTo(expectedDouble); } else { try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/BaseEncoding.java
* on the receiving instance; you must store and use the new encoding instance it returns, instead. * * <pre>{@code * // Do NOT do this * BaseEncoding hex = BaseEncoding.base16(); * hex.lowerCase(); // does nothing! * return hex.decode("deadbeef"); // throws an IllegalArgumentException * }</pre> * * <p>It is guaranteed that {@code encoding.decode(encoding.encode(x))} is always equal to {@code
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Mar 15 16:33:32 UTC 2024 - 41.7K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteStreams.java
*/ public static ByteArrayDataOutput newDataOutput(int size) { // When called at high frequency, boxing size generates too much garbage, // so avoid doing that if we can. if (size < 0) { throw new IllegalArgumentException(String.format("Invalid size: %s", size)); } return newDataOutput(new ByteArrayOutputStream(size)); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jan 17 18:59:58 UTC 2024 - 29.7K bytes - Viewed (0)