Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 256 for GWT (0.07 sec)

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

        assertThrows(NullPointerException.class, () -> builder.put(immutableEntry((String) null, 1)));
        builder.put("foo", 2);
        assertMapEquals(builder.buildOrThrow(), "foo", 2);
      }
    
      // for GWT compatibility
      static class SimpleEntry<K, V> extends AbstractMapEntry<K, V> {
        public K key;
        public V value;
    
        SimpleEntry(K key, V value) {
          this.key = key;
          this.value = value;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

     * <p>The successor to Guava's caching API is <a
     * href="https://github.com/ben-manes/caffeine/wiki">Caffeine</a>. Its API is designed to make it a
     * nearly drop-in replacement. It requires Java 8+, and is not available for Android or GWT/J2CL,
     * and may have <a href="https://github.com/ben-manes/caffeine/wiki/Guava">different (usually
     * better) behavior</a> when multiple threads attempt concurrent mutations. Its equivalent to {@code
     * CacheBuilder} is its <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/InternetDomainName.java

        // they have been left as independent tests for clarity.
    
        if (part.length() < 1 || part.length() > MAX_DOMAIN_PART_LENGTH) {
          return false;
        }
    
        /*
         * GWT claims to support java.lang.Character's char-classification methods, but it actually only
         * works for ASCII. So for now, assume any non-ASCII characters are valid. The only place this
         * seems to be documented is here:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

     */
    @GwtIncompatible // hasn't been tested yet
    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableSortedMultiset<E> extends ImmutableMultiset<E>
        implements SortedMultiset<E> {
      // TODO(lowasser): GWT compatibility
    
      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
       * ImmutableMultiset}. Elements are sorted by the specified comparator.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

     *
     * @author Jesse Wilson
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class OrderingTest extends TestCase {
      // TODO(cpovirk): some of these are inexplicably slow (20-30s) under GWT
    
      private final Ordering<Number> numberOrdering = new NumberOrdering();
    
      public void testAllEqual() {
        Ordering<@Nullable Object> comparator = Ordering.allEqual();
        assertSame(comparator, comparator.reverse());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

     *
     * @author Jesse Wilson
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class OrderingTest extends TestCase {
      // TODO(cpovirk): some of these are inexplicably slow (20-30s) under GWT
    
      private final Ordering<Number> numberOrdering = new NumberOrdering();
    
      public void testAllEqual() {
        Ordering<@Nullable Object> comparator = Ordering.allEqual();
        assertSame(comparator, comparator.reverse());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/BaseEncoding.java

        }
    
        /** Returns an equivalent {@code Alphabet} except it ignores case. */
        Alphabet ignoreCase() {
          if (ignoreCase) {
            return this;
          }
    
          // We can't use .clone() because of GWT.
          byte[] newDecodabet = Arrays.copyOf(decodabet, decodabet.length);
          for (int upper = 'A'; upper <= 'Z'; upper++) {
            int lower = upper | 0x20;
            byte decodeUpper = decodabet[upper];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Futures.java

        }
    
        @SuppressWarnings("unchecked")
        ImmutableList<ListenableFuture<T>> delegatesCast = (ImmutableList) delegates;
        return delegatesCast;
      }
    
      /** Can't use Iterables.toArray because it's not gwt compatible */
      @SuppressWarnings("unchecked")
      private static <T extends @Nullable Object> ListenableFuture<? extends T>[] gwtCompatibleToArray(
          Iterable<? extends ListenableFuture<? extends T>> futures) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/LongMath.java

       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
      public static long floorPowerOfTwo(long x) {
        checkPositive("x", x);
    
        // Long.highestOneBit was buggy on GWT.  We've fixed it, but I'm not certain when the fix will
        // be released.
        return 1L << ((Long.SIZE - 1) - Long.numberOfLeadingZeros(x));
      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/LongMath.java

       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
      public static long floorPowerOfTwo(long x) {
        checkPositive("x", x);
    
        // Long.highestOneBit was buggy on GWT.  We've fixed it, but I'm not certain when the fix will
        // be released.
        return 1L << ((Long.SIZE - 1) - Long.numberOfLeadingZeros(x));
      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top