Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for related (0.18 sec)

  1. guava/src/com/google/common/collect/ImmutableSortedSet.java

       *         .build();
       * }</pre>
       *
       * <p>Builder instances can be reused; it is safe to call {@link #build} multiple times to build
       * multiple sets in series. Each set is a superset of the set created before it.
       *
       * @since 2.0
       */
      public static final class Builder<E> extends ImmutableSet.Builder<E> {
        private final Comparator<? super E> comparator;
        private E[] elements;
        private int n;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

            // values for their generic parameter types.
            Object argValue = generate(paramType);
            if (argValue == null) {
              // When a parameter of a @Generates method cannot be created,
              // The type most likely is a collection.
              // Our distinct proxy doesn't work for collections.
              // So just refuse to generate.
              return null;
            }
            args.add(argValue);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        multimap.put(null, 3);
        multimap.put(null, 1);
        multimap.put(null, 7);
        multimap.put("tree", 0);
        multimap.put("tree", null);
        return multimap;
      }
    
      /** Test that a TreeMultimap created from another uses the natural ordering. */
      public void testMultimapCreateFromTreeMultimap() {
        TreeMultimap<String, Integer> tree =
            TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

       */
      // TODO: test other collections for this problem
      public void testOf_gwtArraycopyBug() {
        /*
         * The test requires:
         *
         * 1) An interface I extending Comparable<I> so that the created array is of
         * an interface type. 2) An instance of a class implementing that interface
         * so that we can pass non-null instances of the interface.
         *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Futures.java

       * transformation function.
       *
       * <p>The primary audience of this method is callers of {@code transform} who don't have a {@code
       * ListenableFuture} available and do not mind repeated, lazy function evaluation.
       *
       * @param input The future to transform
       * @param function A Function to transform the results of the provided future to the results of
       *     the returned future.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

       * iterable. The key used to store that value in the multimap will be the result of calling the
       * function on that value. The resulting multimap is created as an immutable snapshot. In the
       * returned multimap, keys appear in the order they are first encountered, and the values
       * corresponding to each key appear in the same order as they are encountered.
       *
    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)
  7. android/guava/src/com/google/common/collect/Ordering.java

     *
     * <ol>
     *   <li>First, if only one {@code Foo} is null, that null value is treated as <i>greater</i>
     *   <li>Next, non-null {@code Foo} values are passed to {@code getBarFunction} (we will be
     *       comparing {@code Bar} values from now on)
     *   <li>Next, if only one {@code Bar} is null, that null value is treated as <i>lesser</i>
     *   <li>Finally, natural ordering is used (i.e. the result of {@code Bar.compareTo(Bar)} is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <h4>Guarantees</h4>
     *
     * <p>Each makes the following guarantees:
     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
     *       collection. This is a stronger guarantee than that of {@link
     *       Collections#unmodifiableCollection}, whose contents change whenever the wrapped collection
     *       is modified.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        builder.put(k5, v5);
        return builder.build();
      }
    
      // looking for of() with > 5 entries? Use the builder instead.
    
      /**
       * Returns a new builder. The generated builder is equivalent to the builder created by the {@link
       * Builder} constructor.
       */
      public static <K, V> Builder<K, V> builder() {
        return new Builder<>();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableList.java

        return asImmutableList(checkElementsNotNull(elements));
      }
    
      /**
       * Views the array as an immutable list. Does not check for nulls; does not copy.
       *
       * <p>The array must be internally created.
       */
      static <E> ImmutableList<E> asImmutableList(Object[] elements) {
        return asImmutableList(elements, elements.length);
      }
    
      /** Views the array as an immutable list. Does not check for nulls. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
Back to top