Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 333 for UnsupportedOperationException (0.25 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

      public void testRemove_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getMap().remove(k0(), v0()));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_unsupportedAbsent() {
        try {
          assertFalse(getMap().remove(k0(), v3()));
        } catch (UnsupportedOperationException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

      public void testRemove_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getMap().remove(k0(), v0()));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_unsupportedAbsent() {
        try {
          assertFalse(getMap().remove(k0(), v3()));
        } catch (UnsupportedOperationException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableList<V> removeAll(@CheckForNull Object key) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        throw new UnsupportedOperationException();
      }
    
      public final E set(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      public final void add(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      public final E remove(int index) {
        throw new UnsupportedOperationException();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final V put(K k, V v) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableList<V> removeAll(@CheckForNull Object key) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        super(Preconditions.checkNotNull(in));
      }
    
      /** This method will throw an {@link UnsupportedOperationException}. */
      @CanIgnoreReturnValue // to skip a line
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public String readLine() {
        throw new UnsupportedOperationException("readLine is not supported");
      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPut_unsupportedPresentDifferentValue() {
        assertThrows(UnsupportedOperationException.class, () -> getMap().put(k0(), v3()));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

      /*
       * absent = ZERO isn't required, since unmodList.add() must
       * throw regardless, but it keeps the method name accurate.
       */
      public void testAdd_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getList().add(e0()));
      }
    
      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

      /*
       * absent = ZERO isn't required, since unmodList.add() must
       * throw regardless, but it keeps the method name accurate.
       */
      public void testAddAtIndex_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getList().add(0, e0()));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_supportedNotPresent() {
        getList().add(0, e3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top