Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 333 for UnsupportedOperationException (0.41 sec)

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

     * reflecting the new developments of Java 5.
     *
     * <p>As with other collection types, the modification operations are optional, and should throw
     * {@link UnsupportedOperationException} when they are not implemented. Most implementations should
     * support either all add operations or none of them, all removal operations or none of them, and if
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      private void assertIteratorIsUnmodifiable(Iterator<?> iterator) {
        iterator.next();
        try {
          iterator.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testSplitterIterableIsLazy_char() {
        assertSplitterIterableIsLazy(COMMA_SPLITTER);
      }
    
      public void testSplitterIterableIsLazy_string() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

       * The returned collection is a live view of {@code fromCollection}; changes to one affect the
       * other.
       *
       * <p>The returned collection's {@code add()} and {@code addAll()} methods throw an {@link
       * UnsupportedOperationException}. All other collection methods are supported, as long as {@code
       * fromCollection} supports them.
       *
       * <p>The returned collection isn't threadsafe or serializable, even if {@code fromCollection} is.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      /** Subclasses can override to provide different return value for proxied interface methods. */
      @CheckForNull
      Object interfaceMethodCalled(Class<?> interfaceType, Method method) {
        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multiset.java

     * reflecting the new developments of Java 5.
     *
     * <p>As with other collection types, the modification operations are optional, and should throw
     * {@link UnsupportedOperationException} when they are not implemented. Most implementations should
     * support either all add operations or none of them, all removal operations or none of them, and if
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testFromArrayAndIteratorRemove() {
        FluentIterable<TimeUnit> units = FluentIterable.from(TimeUnit.values());
        assertThrows(UnsupportedOperationException.class, () -> removeIf(units, equalTo(SECONDS)));
      }
    
      public void testFrom() {
        assertEquals(
            ImmutableList.of(1, 2, 3, 4),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      /** Subclasses can override to provide different return value for proxied interface methods. */
      @CheckForNull
      Object interfaceMethodCalled(Class<?> interfaceType, Method method) {
        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Converter.java

       *
       * @param b the instance to convert; will never be null
       * @return the converted instance; <b>must not</b> be null
       * @throws UnsupportedOperationException if backward conversion is not implemented; this should be
       *     very rare. Note that if backward conversion is not only unimplemented but
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      private static void assertListImmutable(List<Integer> result) {
        try {
          result.set(0, 1);
          fail();
        } catch (UnsupportedOperationException expected) {
          // pass
        }
      }
    
      public void testIteratorMinAndMax() {
        List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
        assertEquals(9, (int) numberOrdering.max(ints.iterator()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertTrue(elementsEqual(LegacyComparable.VALUES_BACKWARD, set));
      }
    
      @SuppressWarnings({"deprecation", "static-access", "DoNotCall"})
      public void testBuilderMethod() {
        assertThrows(UnsupportedOperationException.class, () -> ImmutableSortedSet.builder());
      }
    
      public void testAsList() {
        ImmutableSet<String> set = ImmutableSortedSet.of("a", "e", "i", "o", "u");
        ImmutableList<String> list = set.asList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top