Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 613 for IllegalArgumentException (0.23 sec)

  1. guava/src/com/google/common/graph/AbstractBaseGraph.java

          return false;
        }
        N nodeU = endpoints.nodeU();
        N nodeV = endpoints.nodeV();
        return nodes().contains(nodeU) && successors(nodeU).contains(nodeV);
      }
    
      /**
       * Throws {@code IllegalArgumentException} if the ordering of {@code endpoints} is not compatible
       * with the directionality of this graph.
       */
      protected final void validateEndpoints(EndpointPair<?> endpoints) {
        checkNotNull(endpoints);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedSet.java

       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
       * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code
       * toElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code toElement}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                Set<String> set = new HashSet<>();
                lifecycle.allPhases().forEach(phase -> {
                    if (!set.add(phase.name())) {
                        throw new IllegalArgumentException(
                                "Found duplicated phase '" + phase.name() + "' in '" + lifecycle.id() + "' lifecycle");
                    }
                });
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                write_andx_resp = new SmbComWriteAndXResponse();
                options = WRITE_OPTIONS;
                access = SmbConstants.FILE_READ_DATA | SmbConstants.FILE_WRITE_DATA;
            } else {
                throw new IllegalArgumentException( "Invalid mode" );
            }
            file.open( openFlags, access, SmbFile.ATTR_NORMAL, options );
            readSize = file.tree.session.transport.rcv_buf_size - 70;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                4,
                Range.openClosed(9, 10),
                2,
                Range.closed(12, 16),
                3),
            rangeMap.asMapOfRanges());
    
        assertThrows(IllegalArgumentException.class, () -> sub.put(Range.open(9, 12), 5));
    
        RangeMap<Integer, Integer> subSub = sub.subRangeMap(Range.closedOpen(5, 5));
        subSub.put(Range.closedOpen(5, 5), 6); // should be a no-op
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testBuilderAddCopiesIllegal() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        assertThrows(IllegalArgumentException.class, () -> builder.addCopies("a", -2));
      }
    
      public void testBuilderSetCountHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableListMultimap.java

       * generated builder is equivalent to that returned by {@link #builder}, but may perform better if
       * {@code expectedKeys} is a good estimate.
       *
       * @throws IllegalArgumentException if {@code expectedKeys} is negative
       * @since 33.3.0
       */
      public static <K, V> Builder<K, V> builderWithExpectedKeys(int expectedKeys) {
        checkNonnegative(expectedKeys, "expectedKeys");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Queues.java

        return new LinkedBlockingDeque<>();
      }
    
      /**
       * Creates an empty {@code LinkedBlockingDeque} with the given (fixed) capacity.
       *
       * @throws IllegalArgumentException if {@code capacity} is less than 1
       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Files.java

       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#readAllBytes}.
       *
       * @param file the file to read from
       * @return a byte array containing all the bytes from file
       * @throws IllegalArgumentException if the file is bigger than the largest possible byte array
       *     (2^31 - 1)
       * @throws IOException if an I/O error occurs
       */
      public static byte[] toByteArray(File file) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/Quantiles.java

         *     q-quantiles; the order of the indexes is unimportant, duplicates will be ignored, and the
         *     set will be snapshotted when this method is called
         * @throws IllegalArgumentException if {@code indexes} is empty
         */
        public ScaleAndIndexes indexes(int... indexes) {
          return new ScaleAndIndexes(scale, indexes.clone());
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
Back to top