- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 64 for Truong (0.15 sec)
-
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 * containing {@code n} occurrences of the separator naturally yields an iterable of size {@code n +
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
return; // there's nothing to test } @Nullable Object[] params = buildParamList(invokable, paramIndex); try { @SuppressWarnings("unchecked") // We'll get a runtime exception if the type is wrong. Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable; unsafe.invoke(instance, params); Assert.fail( "No exception thrown for parameter at index " + paramIndex
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 23.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
return o == this || o == null; } @Override public int hashCode() { return 0; } } /** Test class that returns true even if the test object is of the wrong class */ private static class InvalidEqualsIncompatibleClassObject { @Override public boolean equals(@Nullable Object o) { return o != null; } @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 12.9K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
* <pre>{@code * new TypeToken<List<String>>() {} * }</pre> * <p>Note that it's critical that the actual type argument is carried by a subclass. The * following code is wrong because it only captures the {@code <T>} type variable of the * {@code listType()} method signature; while {@code <String>} is lost in erasure: * <pre>{@code * class Util {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
void oldRepeat(long reps) { for (int i = 0; i < reps; i++) { String x = oldRepeat(originalString, count); if (x.length() != (originalString.length() * count)) { throw new RuntimeException("Wrong length: " + x); } } } private static String oldRepeat(String string, int count) { // If this multiplication overflows, a NegativeArraySizeException or // OutOfMemoryError is not far behind
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Sep 17 20:24:24 GMT 2021 - 3.3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
// we reached EOF return new String(buffer, 0, bufIndex); } // otherwise we got the size wrong. This can happen if the size changes between when // we called sizeIfKnown and when we started reading the file (or I guess if // maxCharsPerByte is wrong) // Fallback to an incremental approach StringBuilder builder = new StringBuilder(bufIndex + 32);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
// we reached EOF return new String(buffer, 0, bufIndex); } // otherwise we got the size wrong. This can happen if the size changes between when // we called sizeIfKnown and when we started reading the file (or I guess if // maxCharsPerByte is wrong) // Fallback to an incremental approach StringBuilder builder = new StringBuilder(bufIndex + 32);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
private final String value; LegacyComparable(String value) { this.value = value; } @Override public int compareTo(Object object) { // This method is spec'd to throw CCE if object is of the wrong type LegacyComparable that = (LegacyComparable) object; return this.value.compareTo(that.value); } @Override public boolean equals(@Nullable Object object) { if (object instanceof LegacyComparable) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 2.3K bytes - Viewed (0) -
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 * containing {@code n} occurrences of the separator naturally yields an iterable of size {@code n +
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 24.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
* transitionService in the wrong order due to a race. Due to the fact that it is a race this test * isn't guaranteed to expose the issue, but it is at least likely to become flaky if the race * sneaks back in, and in this case flaky means something is definitely wrong. * * <p>Before the bug was fixed this test would fail at least 30% of the time. */
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Oct 02 17:20:27 GMT 2023 - 23.9K bytes - Viewed (0)