Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for expected (0.17 sec)

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

        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testGetOnlyElement_noDefault_moreThanOneLessThanFiveElements() {
        Iterator<String> iterator = asList("one", "two").iterator();
        try {
          Iterators.getOnlyElement(iterator);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
        }
    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/ImmutableSortedMap.java

          K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        checkNotNull(fromKey);
        checkNotNull(toKey);
        checkArgument(
            comparator().compare(fromKey, toKey) <= 0,
            "expected fromKey <= toKey but %s > %s",
            fromKey,
            toKey);
        return headMap(toKey, toInclusive).tailMap(fromKey, fromInclusive);
      }
    
      /**
    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)
  3. android/guava/src/com/google/common/base/Preconditions.java

     * java.util.Formatter} specifiers. However, note that if the number of arguments does not match the
     * number of occurrences of {@code "%s"} in the format string, {@code Preconditions} will still
     * behave as expected, and will still include all argument values in the error message; the message
     * will simply not be formatted exactly as intended.
     *
     * <h3>More information</h3>
     *
     * <p>See the Guava User Guide on <a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Futures.java

       *     unrecoverable errors, callers should prefer more specific types, avoiding {@code
       *     Throwable.class} in particular.
       * @param fallback the {@link Function} to be called if {@code input} fails with the expected
       *     exception type. The function's argument is the input's exception. "The input's exception"
       *     means the cause of the {@link ExecutionException} thrown by {@code input.get()} or, if
    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)
  5. android/guava/src/com/google/common/collect/Iterators.java

        T first = iterator.next();
        if (!iterator.hasNext()) {
          return first;
        }
    
        StringBuilder sb = new StringBuilder().append("expected one element but was: <").append(first);
        for (int i = 0; i < 4 && iterator.hasNext(); i++) {
          sb.append(", ").append(iterator.next());
        }
        if (iterator.hasNext()) {
          sb.append(", ...");
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top