Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for world (0.15 sec)

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

      }
    
      public void testToStringWithNull() {
        Iterator<@Nullable String> iterator =
            Lists.<@Nullable String>newArrayList("hello", null, "world").iterator();
        assertEquals("[hello, null, world]", Iterators.toString(iterator));
      }
    
      public void testToStringEmptyIterator() {
        Iterator<String> iterator = Collections.<String>emptyList().iterator();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

      //
      // ...where "@JointlyNullable" is similar to @PolyNull but slightly different:
      //
      // - @PolyNull means "@Nullable or @Nonnull"
      //   (That would be unsound for an input Iterable<@Nullable Foo>. So, if we wanted to use
      //   @PolyNull, we would have to restrict this method to non-null <T>. But it has users who pass
      //   iterables with null elements.)
      //
      // - @JointlyNullable means "@Nullable or no annotation"
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

       * 1] < [1, 2] < [2]}.
       *
       * <p>Note that {@code Collections.reverseOrder(lexicographical(comparator))} is not equivalent to
       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

      /**
       * Returns an unmodifiable view of the intersection of two multisets. In the returned multiset,
       * the count of each element is the <i>minimum</i> of its counts in the two backing multisets,
       * with elements that would have a count of 0 not included. The iteration order of the returned
       * multiset matches that of the element set of {@code multiset1}, with repeated occurrences of the
       * same element appearing consecutively.
       *
    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)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        throw new InvalidObjectException("Use SerializedForm");
      }
    
      // This class is never actually serialized directly, but we have to make the
      // warning go away (and suppressing would suppress for all nested classes too)
      private static final long serialVersionUID = 0;
    
      /**
       * Not supported. Use {@link #toImmutableSortedMap}, which offers better type-safety, instead.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

       * values are merged using the specified merging function. If the merging function returns {@code
       * null}, then the collector removes the value that has been computed for the key thus far (though
       * future occurrences of the key would reinsert it).
       *
       * <p>Entries will appear in the encounter order of the first occurrence of the key.
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
    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)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          // unpark even though the thread has already removed itself from the list. But even if we did
          // use a CAS, that race would still exist (it would just be ever so slightly smaller).
          Thread w = thread;
          if (w != null) {
            thread = null;
            LockSupport.unpark(w);
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       *
       * <p>If {@code expectedSize} is exactly the number of entries added to the builder before {@link
       * Builder#build} is called, the builder is likely to perform better than an unsized {@link
       * #builder()} would have.
       *
       * <p>It is not specified if any performance benefits apply if {@code expectedSize} is close to,
       * but not exactly, the number of entries added to the builder.
       *
       * @since 23.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)
  9. android/guava/src/com/google/common/collect/Sets.java

       *   <li>{@code ImmutableList.of(2, "C")}
       * </ul>
       *
       * <p>The result is guaranteed to be in the "traditional", lexicographical order for Cartesian
       * products that you would get from nesting for loops:
       *
       * <pre>{@code
       * for (B b0 : sets.get(0)) {
       *   for (B b1 : sets.get(1)) {
       *     ...
       *     ImmutableList<B> tuple = ImmutableList.of(b0, b1, ...);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

      /**
       * Support removal operations when filtering a filtered multimap. Since a filtered multimap has
       * iterators that don't support remove, passing one to the FilteredEntryMultimap constructor would
       * lead to a multimap whose removal operations would fail. This method combines the predicates to
       * avoid that problem.
       */
      private static <K extends @Nullable Object, V extends @Nullable Object>
          Multimap<K, V> filterFiltered(
    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)
Back to top