Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 291 for UnsupportedOperationException (0.14 seconds)

  1. guava/src/com/google/common/collect/AbstractRangeSet.java

      @Override
      public boolean isEmpty() {
        return asRanges().isEmpty();
      }
    
      @Override
      public void add(Range<C> range) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public void remove(Range<C> range) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public void clear() {
        remove(Range.all());
      }
    
      @Override
      public boolean enclosesAll(RangeSet<C> other) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Tables.java

          throw new UnsupportedOperationException();
        }
    
        @Override
        public void putAll(Table<? extends R, ? extends C, ? extends V> table) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public @Nullable V remove(@Nullable Object rowKey, @Nullable Object columnKey) {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 86.5K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/TestMetadataSource.java

                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
                throws ArtifactMetadataRetrievalException {
            throw new UnsupportedOperationException("Cannot get available versions in this test case");
        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

            UnsupportedOperationException.class,
            () -> rangeSet.removeAll(ImmutableRangeSet.<Integer>of()));
    
        assertThrows(
            UnsupportedOperationException.class,
            () -> rangeSet.removeAll(ImmutableRangeSet.of(Range.closed(6, 8))));
      }
    
      @AndroidIncompatible // slow
      public void testExhaustive() {
        ImmutableSet<Range<Integer>> ranges =
            ImmutableSet.of(
                Range.<Integer>all(),
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Jan 25 16:19:30 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(
            UnsupportedOperationException.class, () -> putAll(MinimalCollection.of(e3(), e0())));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutAll_unsupportedAllPresent() {
        try {
          putAll(MinimalCollection.of(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

      public void testClear_unsupported() {
        assertThrows(UnsupportedOperationException.class, () -> collection.clear());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testClear_unsupportedByEmptyCollection() {
        try {
          collection.clear();
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

                char.class,
                double.class,
                float.class,
                int.class,
                long.class,
                short.class,
                void.class);
    
        assertThrows(UnsupportedOperationException.class, () -> primitives.remove(boolean.class));
      }
    
      public void testAllWrapperTypes() {
        Set<Class<?>> wrappers = Primitives.allWrapperTypes();
        assertThat(wrappers)
            .containsExactly(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        private boolean throwOnShutDown = false;
    
        @Override
        protected void run() {
          throw new UnsupportedOperationException("kaboom!");
        }
    
        @Override
        protected void shutDown() {
          shutDownCalled = true;
          if (throwOnShutDown) {
            throw new UnsupportedOperationException("double kaboom!");
          }
        }
    
        @Override
        protected Executor executor() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

                  });
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfPresent_unsupportedPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getMap().computeIfPresent(k0(), (k, v) -> v3()));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 6.1K bytes
    - Click Count (0)
Back to Top