Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 235 for _gwt (0.01 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      /*
       * Tests that we workaround GWT bug #3621 (or that it is already fixed).
       *
       * A call to of() with a parameter that is not a plain Object[] (here,
       * Interface[]) creates a RegularImmutableSortedSet backed by an array of that
       * type. Later, RegularImmutableSortedSet.toArray() calls System.arraycopy()
       * to copy from that array to the destination array. This would be fine, but
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

     *
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    public class ImmutableMultisetTest extends TestCase {
    
      @J2ktIncompatible
      @GwtIncompatible // suite // TODO(cpovirk): add to collect/gwt/suites
      @AndroidIncompatible // test-suite builders
      public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(ImmutableMultisetTest.class);
    
        suite.addTest(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top