Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for iterable (0.21 sec)

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

        }
        return Ints.saturatedCast(size);
      }
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T extends @Nullable Object> Multiset<T> cast(Iterable<T> iterable) {
        return (Multiset<T>) iterable;
      }
    
      /**
       * Returns a copy of {@code multiset} as an {@link ImmutableMultiset} whose iteration order puts
    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)
  2. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * entries in the same order as the original iterable.
       *
       * @throws IllegalArgumentException if two keys have the same value or two values have the same
       *     key
       * @throws NullPointerException if any key, value, or entry is null
       * @since 19.0
       */
      public static <K, V> ImmutableBiMap<K, V> copyOf(
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        int estimatedSize =
    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)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         *
         * @param elements the {@code Iterable} to add to the {@code ImmutableSortedMultiset}
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addAll(Iterable<? extends E> elements) {
          if (elements instanceof Multiset) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

         * @since 19.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(Iterable<? extends Entry<? extends K, ? extends V>> entries) {
          super.putAll(entries);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          super.putAll(key, values);
          return this;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, Collection<? extends E> elements) {
        return copyOf(comparator, (Iterable<? extends E>) elements);
      }
    
      /**
       * Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
       * {@code Comparator}. That behavior differs from {@link #copyOf(Iterable)}, which always uses the
       * natural ordering of the elements.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    if (artifactLastModified > buildStartTime) {
                        return true;
                    }
                }
    
                for (Path outputFile : (Iterable<Path>) outputFiles::iterator) {
                    if (Files.isDirectory(outputFile)) {
                        continue;
                    }
    
                    long outputFileLastModified =
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

       * entries in the same order as the original iterable.
       *
       * @throws NullPointerException if any key, value, or entry is null
       * @throws IllegalArgumentException if two entries have the same key
       * @since 19.0
       */
      public static <K, V> ImmutableMap<K, V> copyOf(
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        int initialCapacity =
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    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)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

          return parameterizedTable;
        } else {
          return copyOf(table.cellSet());
        }
      }
    
      static <R, C, V> ImmutableTable<R, C, V> copyOf(
          Iterable<? extends Cell<? extends R, ? extends C, ? extends V>> cells) {
        ImmutableTable.Builder<R, C, V> builder = ImmutableTable.builder();
        for (Cell<? extends R, ? extends C, ? extends V> cell : cells) {
          builder.put(cell);
    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/Maps.java

        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollFirstEntry() {
          return Iterables.removeFirstMatching(unfiltered.entrySet(), entryPredicate);
        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollLastEntry() {
          return Iterables.removeFirstMatching(unfiltered.descendingMap().entrySet(), entryPredicate);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top