Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 424 for generate (0.2 sec)

  1. android/guava/src/com/google/common/net/HostAndPort.java

        checkArgument(isValidPort(defaultPort));
        if (hasPort()) {
          return this;
        }
        return new HostAndPort(host, defaultPort, hasBracketlessColons);
      }
    
      /**
       * Generate an error if the host might be a non-bracketed IPv6 literal.
       *
       * <p>URI formatting requires that IPv6 literals be surrounded by brackets, like "[2001:db8::1]".
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>Java 8+ users:</b> If passing a single element {@code e}, the {@code Stream} equivalent
       * of this method is {@code Stream.generate(() -> e)}. Otherwise, put the elements in a collection
       * and use {@code Stream.generate(() -> collection).flatMap(Collection::stream)}.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterable<T> cycle(T... elements) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

        NavigableSet<E> empty = navigableSet.subSet(e0(), false, e0(), false);
        assertEquals(new TreeSet<E>(), empty);
      }
    
      /*
       * TODO(cpovirk): more testing of subSet/headSet/tailSet/descendingSet? and/or generate derived
       * suites?
       */
    
      /**
       * Returns the {@link Method} instances for the test methods in this class that create a set with
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheTesting.java

       * SoftValueReference (and not a LoadingValueReference), and throws an IllegalStateException if
       * that assumption does not hold.
       */
      @SuppressWarnings("unchecked") // the instanceof check and the cast generate this warning
      static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) {
        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
        if (entry != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

        private static final long serialVersionUID = 0;
      }
    
      /**
       * Creates a new {@code ListMultimap} that uses the provided map and factory. It can generate a
       * multimap based on arbitrary {@link Map} and {@link List} classes.
       *
       * <p>The {@code factory}-generated and {@code map} classes determine the multimap iteration
       * order. They also specify the behavior of the {@code equals}, {@code hashCode}, and {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable bimaps, the {@code ImmutableBiMap.of()} methods are even more
       * convenient.
       *
       * <p>By default, a {@code Builder} will generate bimaps that iterate over entries in the order
       * they were inserted into the builder. For example, in the above example, {@code
       * WORD_TO_INT.entrySet()} is guaranteed to iterate over the entries in the order {@code "one"=1,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FluentIterable.java

       * elements.
       *
       * <p><b>{@code Stream} equivalent:</b> if the source iterable has only a single element {@code
       * e}, use {@code Stream.generate(() -> e)}. Otherwise, collect your stream into a collection and
       * use {@code Stream.generate(() -> collection).flatMap(Collection::stream)}.
       */
      public final FluentIterable<E> cycle() {
        return from(Iterables.cycle(getDelegate()));
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable maps, the {@code ImmutableMap.of()} methods are even more
       * convenient.
       *
       * <p>By default, a {@code Builder} will generate maps that iterate over entries in the order they
       * were inserted into the builder, equivalently to {@code LinkedHashMap}. For example, in the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

    import java.util.concurrent.LinkedBlockingDeque;
    import java.util.concurrent.LinkedBlockingQueue;
    import java.util.concurrent.PriorityBlockingQueue;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    
    /**
     * Generates a test suite covering the {@link Queue} implementations in the {@link java.util}
     * package. Can be subclassed to specify tests that should be suppressed.
     *
     * @author Jared Levy
     */
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheTesting.java

       * SoftValueReference (and not a LoadingValueReference), and throws an IllegalStateException if
       * that assumption does not hold.
       */
      @SuppressWarnings("unchecked") // the instanceof check and the cast generate this warning
      static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) {
        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
        if (entry != null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top