Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 301 for _gwt (0.01 seconds)

  1. android/guava/src/com/google/common/collect/NaturalOrdering.java

      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public int compare(Comparable<?> left, Comparable<?> right) {
        checkNotNull(left); // for GWT
        checkNotNull(right);
        return ((Comparable<Object>) left).compareTo(right);
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/Utf8Test.java

        }
        builder.add(newString(MIN_LOW_SURROGATE, MAX_HIGH_SURROGATE));
        ILL_FORMED_STRINGS = builder.build();
      }
    
      // We can't use Character.isSurrogate(c) because of GWT.
    
      public void testEncodedLength_validStrings() {
        assertEquals(0, Utf8.encodedLength(""));
        assertEquals(11, Utf8.encodedLength("Hello world"));
        assertEquals(8, Utf8.encodedLength("Résumé"));
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Booleans.java

        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        boolean[] array = new boolean[len];
        for (int i = 0; i < len; i++) {
          // checkNotNull for GWT (do not optimize)
          array[i] = (Boolean) checkNotNull(boxedArray[i]);
        }
        return array;
      }
    
      /**
       * Returns a fixed-size list backed by the specified array, similar to {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

    import java.util.logging.Level;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A helper which does some thread-safe operations for aggregate futures, which must be implemented
     * differently in GWT. Namely:
     *
     * <ul>
     *   <li>Lazily initializes a set of seen exceptions
     *   <li>Decrements a counter atomically
     * </ul>
     */
    @GwtCompatible
    @ReflectionSupport(value = ReflectionSupport.Level.FULL)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/SmallCharMatcher.java

     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    final class SmallCharMatcher extends NamedFastMatcher {
      static final int MAX_SIZE = 1023;
      private final char[] table;
      private final boolean containsZero;
      private final long filter;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 03:49:18 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/SortedMultisets.java

     */
    @GwtCompatible
    final class SortedMultisets {
      private SortedMultisets() {}
    
      /** A skeleton implementation for {@link SortedMultiset#elementSet}. */
      @SuppressWarnings("JdkObsolete") // TODO(b/6160855): Switch GWT emulations to NavigableSet.
      static class ElementSet<E extends @Nullable Object> extends Multisets.ElementSet<E>
          implements SortedSet<E> {
        @Weak private final SortedMultiset<E> multiset;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Collection tests on wrappers from {@link Multisets}.
     *
     * @author Jared Levy
     */
    @GwtIncompatible // suite // TODO(cpovirk): set up collect/gwt/suites version
    @NullUnmarked
    @AndroidIncompatible // test-suite builders
    public class MultisetsCollectionTest extends TestCase {
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTest(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  8. android/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");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * execute immediately.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/ListenableFutureExplained">{@code
     * ListenableFuture}</a>.
     *
     * <p>This class is GWT-compatible.
     *
     * <h3>Purpose</h3>
     *
     * <p>The main purpose of {@code ListenableFuture} is to help you chain together a graph of
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8K bytes
    - Click Count (0)
  10. guava/src/com/google/common/base/StandardSystemProperty.java

       *       available even under older version.
       *   <li>Any property may be cleared through APIs like {@link System#clearProperty}.
       *   <li>Unusual environments like GWT may have their own special handling of system properties.
       * </ul>
       *
       * <p>Note that {@code StandardSystemProperty} does not provide constants for more recently added
       * properties, including:
       *
       * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 06 10:03:30 GMT 2025
    - 4.9K bytes
    - Click Count (0)
Back to Top