Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for It (0.12 sec)

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

          Iterable<? extends T> iterable, Comparator<T> comparator) {
        checkNotNull(comparator);
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (comparator.compare(prev, next) >= 0) {
              return false;
            }
            prev = next;
          }
        }
    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)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
    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)
  3. android/guava/src/com/google/common/collect/Iterables.java

       * elements that exist when the {@code Iterator} is created, not when {@code skip()} is called.
       *
       * <p>The returned iterable's iterator supports {@code remove()} if the iterator of the underlying
       * iterable supports it. Note that it is <i>not</i> possible to delete the last skipped element by
       * immediately calling {@code remove()} on that iterator, as the {@code Iterator} contract states
    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)
  4. android/guava/src/com/google/common/collect/Multisets.java

       * @since 11.0
       */
      public static <E extends @Nullable Object> SortedMultiset<E> unmodifiableSortedMultiset(
          SortedMultiset<E> sortedMultiset) {
        // it's in its own file so it can be emulated for GWT
        return new UnmodifiableSortedMultiset<>(checkNotNull(sortedMultiset));
      }
    
      /**
       * Returns an immutable multiset entry with the specified element and count. The entry will be
    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/ImmutableSetMultimap.java

        }
    
        /** Adds a key-value mapping to the built multimap if it is not already present. */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          super.put(key, value);
          return this;
        }
    
        /**
         * Adds an entry to the built multimap if it is not already present.
         *
         * @since 11.0
         */
        @CanIgnoreReturnValue
    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)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

         * based on the first time it was added, again unless {@link #orderEntriesByValue} was called.
         *
         * <p>In the current implementation, all values associated with a given key are stored in the
         * {@code Builder} object, even though only one of them will be used in the built map. If there
         * can be many repeated keys, it may be more space-efficient to use a {@link
    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/collect/ImmutableRangeSet.java

            return false;
          }
        }
    
        @Override
        int indexOf(@CheckForNull Object target) {
          if (contains(target)) {
            @SuppressWarnings("unchecked") // if it's contained, it's definitely a C
            C c = (C) requireNonNull(target);
            long total = 0;
            for (Range<C> range : ranges) {
              if (range.contains(c)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * this builder to sort entries by value.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple bimaps in series. Each bimap is a superset of the bimaps created before it.
       *
       * @since 2.0
       */
      public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> {
        /**
    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/ImmutableTable.java

       * Object)} are even more convenient.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple tables in series. Each table is a superset of the tables created before it.
       *
       * @since 11.0
       */
      @DoNotMock
      public static final class Builder<R, C, V> {
    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/Ordering.java

       * documentation).
       */
      public boolean isOrdered(Iterable<? extends T> iterable) {
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (compare(prev, next) > 0) {
              return false;
            }
            prev = next;
          }
        }
        return true;
      }
    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)
Back to top