- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 235 for GWT (0.01 sec)
-
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
* implementation helpers. * * @author Louis Wasserman */ /* * TODO(cpovirk): Should all the tests for filtered collections run under GWT, too? Currently, they * don't. */ @NullUnmarked public final class FilteredCollectionsTestUtil { private static final Predicate<Integer> EVEN = new Predicate<Integer>() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
assertThat(UnsignedLongs.remainder(0xfffffffffffffffeL, 2)).isEqualTo(0); assertThat(UnsignedLongs.remainder(0xfffffffffffffffeL, 5)).isEqualTo(4); } @GwtIncompatible // Too slow in GWT (~3min fully optimized) public void testDivideRemainderEuclideanProperty() { // Use a seed so that the test is deterministic: Random r = new Random(0L); for (int i = 0; i < 1000000; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1)); } @GwtIncompatible // Double.toString returns different value in GWT. public void testJoin() { assertThat(Doubles.join(",", EMPTY)).isEmpty(); assertThat(Doubles.join(",", ARRAY1)).isEqualTo("1.0"); assertThat(Doubles.join(",", 1.0, 2.0)).isEqualTo("1.0,2.0");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
} Object[] boxedArray = collection.toArray(); int len = boxedArray.length; char[] array = new char[len]; for (int i = 0; i < len; i++) { // checkNotNull for GWT (do not optimize) array[i] = (Character) checkNotNull(boxedArray[i]); } return array; } /** * Sorts the elements of {@code array} in descending order. * * @since 23.1
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
// It would be nice to be able to return a real concurrent // collection like ConcurrentLinkedQueue, so that e.g. concurrent // iteration would work, but that would not be GWT-compatible. // We are not "just" inheriting from ArrayList here as this doesn't work for J2kt. return new AbstractList<T>() { final ArrayList<T> data = new ArrayList<>(); @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 17.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
break; case SIZE: stats[3]++; break; default: throw new IllegalStateException("No collected exceptions in GWT CacheBuilder."); } } }; Cache<Integer, Integer> cache = CacheBuilder.newBuilder() .expireAfterWrite(1000, MILLISECONDS)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
* greater than {@code b}; or zero if they are equal */ @SuppressWarnings("InlineMeInliner") // Integer.compare unavailable under GWT+J2CL public static int compare(long a, long b) { return Longs.compare(flip(a), flip(b)); } /** * Returns the least value present in {@code array}, treating values as unsigned. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 17.8K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
*/ private static char[] growBuffer(char[] dest, int index, int size) { if (size < 0) { // overflow - should be OutOfMemoryError but GWT/j2cl don't support it throw new AssertionError("Cannot increase internal buffer any further"); } char[] copy = new char[size]; if (index > 0) { System.arraycopy(dest, 0, copy, 0, index); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 13.2K bytes - Viewed (0) -
guava/src/com/google/common/escape/UnicodeEscaper.java
*/ private static char[] growBuffer(char[] dest, int index, int size) { if (size < 0) { // overflow - should be OutOfMemoryError but GWT/j2cl don't support it throw new AssertionError("Cannot increase internal buffer any further"); } char[] copy = new char[size]; if (index > 0) { System.arraycopy(dest, 0, copy, 0, index); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 13.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
import java.util.SortedSet; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Derived suite generators, split out of the suite builders so that they are available to GWT. * * @author George van den Driessche */ @GwtCompatible @NullMarked public final class DerivedCollectionGenerators { public static class MapEntrySetGenerator<K extends @Nullable Object, V extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 18.2K bytes - Viewed (0)