- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 110 for Hong (0.22 sec)
-
android/guava-tests/test/com/google/common/collect/OrderingTest.java
} private static final long serialVersionUID = 0; } /* * Now we have monster tests that create hundreds of Orderings using different * combinations of methods, then checks compare(), binarySearch() and so * forth on each one. */ // should periodically try increasing this, but it makes the test run long private static final int RECURSE_DEPTH = 2;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 42.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedSet.java
this.elements = elements; } @SuppressWarnings("unchecked") Object readResolve() { return new Builder<E>(comparator).add((E[]) elements).build(); } private static final long serialVersionUID = 0; } @J2ktIncompatible // serialization private void readObject(ObjectInputStream unused) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 38.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Collections2.java
* other. * * <p>The returned collection's {@code add()} and {@code addAll()} methods throw an {@link * UnsupportedOperationException}. All other collection methods are supported, as long as {@code * fromCollection} supports them. * * <p>The returned collection isn't threadsafe or serializable, even if {@code fromCollection} is. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 22.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
} /** * Creates an {@code EnumSet} consisting of all enum values that are not in the specified * collection. This is equivalent to {@link EnumSet#complementOf}, but can act on any input * collection, as long as the elements are of enum type. * * @param collection the collection whose complement should be stored in the {@code EnumSet} * @param type the type of the elements in the set
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 77.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LongMathTest.java
assertMean(0, 0, 0); assertMean(-1, -1, -1); assertMean(Long.MIN_VALUE, Long.MIN_VALUE, Long.MIN_VALUE); assertMean(Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE); // Exhaustive checks for (long x : ALL_LONG_CANDIDATES) { for (long y : ALL_LONG_CANDIDATES) { assertMean(x, y); } } } /** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
for (short value : VALUES) { assertThat(Shorts.checkedCast((long) value)).isEqualTo(value); } assertCastFails(GREATEST + 1L); assertCastFails(LEAST - 1L); assertCastFails(Long.MAX_VALUE); assertCastFails(Long.MIN_VALUE); } public void testSaturatedCast() { for (short value : VALUES) { assertThat(Shorts.saturatedCast((long) value)).isEqualTo(value); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 26.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
public static <E> int drainUninterruptibly( BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit) { Preconditions.checkNotNull(buffer); long deadline = System.nanoTime() + unit.toNanos(timeout); int added = 0; boolean interrupted = false; try { while (added < numElements) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 16K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
checkNonnegative(occurrences, "occurrences"); if (occurrences == 0) { return count(element); } int index = element.ordinal(); int oldCount = counts[index]; long newCount = (long) oldCount + occurrences; checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount); counts[index] = (int) newCount; if (oldCount == 0) { distinctElements++; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Platform.java
* type. * * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant * won't be cleared as long as the enum constant is referenced somewhere, and the enum constant * is referenced somewhere for as long as the enum class is loaded. *Maybe in theory* the enum * class could be unloaded after the above call to `getEnumConstants` but before we call
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 15 22:32:14 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java
} public void testEmptyArrayToEmpty() { doTestNewArrayEquals(new Object[0], 0); } public void testEmptyArrayToNonEmpty() { checkArrayEquals(new Long[5], ObjectArrays.newArray(new Long[0], 5)); } public void testNonEmptyToShorter() { checkArrayEquals(new String[9], ObjectArrays.newArray(new String[10], 9)); } public void testNonEmptyToSameLength() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 8.8K bytes - Viewed (0)