Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 304 for UnsupportedOperationException (0.42 sec)

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

        final String string;
    
        public HashHostileComparable(String string) {
          this.string = string;
        }
    
        @Override
        public int hashCode() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public int compareTo(HashHostileComparable o) {
          return string.compareTo(o.string);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        final String string;
    
        public HashHostileComparable(String string) {
          this.string = string;
        }
    
        @Override
        public int hashCode() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public int compareTo(HashHostileComparable o) {
          return string.compareTo(o.string);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multiset.java

     * elements. This is simply a refinement of {@code Collection}'s constructor recommendations.
     *
     * <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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
      }
    
      /** Subclasses can override to provide different return value for proxied interface methods. */
      @Nullable 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 21:43:06 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
      }
    
      /** Subclasses can override to provide different return value for proxied interface methods. */
      @Nullable 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multiset.java

     * elements. This is simply a refinement of {@code Collection}'s constructor recommendations.
     *
     * <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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          checkNotNull(name);
        }
      }
    
      private static class ThrowsUoe {
        @Keep
        public static void christenPoodle(String unused) {
          throw new UnsupportedOperationException();
        }
      }
    
      private static class ThrowsSomethingElse {
        @Keep
        public static void christenPoodle(String unused) {
          throw new RuntimeException();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
Back to top