Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for failed (0.27 sec)

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

        Iterator<String> iterator = skip(set, 2).iterator();
        try {
          iterator.next();
        } catch (NoSuchElementException suppressed) {
          // We want remove() to fail even after a failed call to next().
        }
        try {
          iterator.remove();
          fail("Expected IllegalStateException");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testSkip_allOfMutableList_modifiable() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * 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.
       *
       * @throws ClassCastException if the elements are not mutually comparable
       * @throws NullPointerException if any of {@code elements} is null
       */
    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

              }
    
              @Override
              @ParametricNullness
              public T next() {
                T result = iterator.next();
                atStart = false; // not called if next() fails
                return result;
              }
    
              @Override
              public void remove() {
                checkRemove(!atStart);
                iterator.remove();
              }
            };
    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/ImmutableSortedMap.java

                    // requireNonNull is safe because the first `size` elements have been filled in.
                    requireNonNull(e1);
                    requireNonNull(e2);
                    return comparator.compare(e1.getKey(), e2.getKey());
                  });
              // requireNonNull is safe because the first `size` elements have been filled in.
              Entry<K, V> firstEntry = requireNonNull(entryArray[0]);
    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)
  5. guava/src/com/google/common/collect/ImmutableList.java

          return of();
        } else if (length == 1) {
          return of(get(fromIndex));
        } else {
          return subListUnchecked(fromIndex, toIndex);
        }
      }
    
      /**
       * Called by the default implementation of {@link #subList} when {@code toIndex - fromIndex > 1},
       * after index validation has already been performed.
       */
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p>This method is called {@code murmur3_32_fixed} because it fixes a bug in the {@code
       * HashFunction} returned by the original {@code murmur3_32} method.
       *
       * @since 31.0
       */
      public static HashFunction murmur3_32_fixed() {
        return Murmur3_32HashFunction.MURMUR3_32_FIXED;
      }
    
      /**
       * Returns a hash function implementing the <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

       * won't compile on Java 7, while if we don't include the method then the compiler will complain
       * that an abstract method is unimplemented. So instead we use a dynamic proxy to get an
       * implementation. If the method being called on the {@code TypeVariable} instance has the same
       * name as one of the public methods of {@link TypeVariableImpl}, the proxy calls the same method
       * on its instance of {@code TypeVariableImpl}. Otherwise it throws {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

       *
       * <p>Expiration is only checked on hasNext(), so as to ensure that a next() call never returns
       * null when hasNext() has already been called.
       */
      class EntryIterator implements Iterator<Entry<K, V>> {
        Iterator<Entry<K, Timestamped<V>>> iterator;
        Entry<K, Timestamped<V>> lastEntry;
        Entry<K, Timestamped<V>> nextEntry;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      private final transient int size;
    
      /*
       * We have some considerable complexity in these create methods because of
       * Builder.buildKeepingLast(). The same Builder might be called with buildKeepingLast() and then
       * buildOrThrow(), or vice versa. So in particular, if we modify alternatingKeysAndValues to
       * eliminate duplicate keys (for buildKeepingLast()) then we have to ensure that a later call to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Collections2.java

       * collection's {@code add()} and {@code addAll()} methods throw an {@link
       * IllegalArgumentException}. When methods such as {@code removeAll()} and {@code clear()} are
       * called on the filtered collection, only elements that satisfy the filter will be removed from
       * the underlying collection.
       *
       * <p>The returned collection isn't threadsafe or serializable, even if {@code unfiltered} is.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top