Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 420 for UnsupportedOperationException (0.43 seconds)

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

                  endOfData();
                }
                haveBeenCalled = true;
                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                  endOfData();
                }
                haveBeenCalled = true;
                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        network.addNode(N1);
        network.addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        network.addEdge(N1, N2, E12);
        assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactlyElementsIn(edgesConnecting);
      }
    
      @Test
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(asList(b, c), copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> sortedMultiset.pollFirstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLower() {
        resetWithHole();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

     *
     * <pre>
     * class Unsupported extends AbstractInvocationHandler {
     *   protected Object handleInvocation(Object proxy, Method method, Object[] args) {
     *     throw new UnsupportedOperationException();
     *   }
     * }
     *
     * CharSequence unsupported = Reflection.newProxy(CharSequence.class, new Unsupported());
     * </pre>
     *
     * @author Ben Yu
     * @since 12.0
     */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/GraphBuilder.java

      }
    
      /**
       * Specifies whether the graph will allow self-loops (edges that connect a node to itself).
       * Attempting to add a self-loop to a graph that does not allow them will throw an {@link
       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
      public GraphBuilder<N> allowsSelfLoops(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java

        static final String DOCKER_COMPOSE_YML = "docker-compose.yml";
    
        @Inject
        protected FileSystemOperations getFileSystemOperations() {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public void apply(Project project) {
            project.getRootProject().getPluginManager().apply(DockerSupportPlugin.class);
    
            TaskContainer tasks = project.getTasks();
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 29 15:07:50 GMT 2021
    - 10.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            // if (info.getLeaseKey() != null) {
            //     request.addLeaseV1Context(info.getLeaseKey(), Smb2LeaseState.SMB2_LEASE_NONE);
            // }
    
            // return request;
    
            throw new UnsupportedOperationException("createReconnectionRequest requires Configuration access and should be "
                    + "implemented by the concrete SMB file implementation");
        }
    
        /**
         * Get the maximum number of retry attempts
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 8.5K bytes
    - Click Count (1)
  9. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      }
    
      /**
       * Specifies whether the graph will allow self-loops (edges that connect a node to itself).
       * Attempting to add a self-loop to a graph that does not allow them will throw an {@link
       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
      public ValueGraphBuilder<N, V> allowsSelfLoops(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        public HashCode hashBytes(byte[] input, int off, int len) {
          return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len));
        }
    
        @Override
        public int bits() {
          throw new UnsupportedOperationException();
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top