Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 613 for IllegalArgumentException (0.14 sec)

  1. android/guava/src/com/google/common/collect/Range.java

        return new Range<>(lowerBound, upperBound);
      }
    
      /**
       * Returns a range that contains all values strictly greater than {@code lower} and strictly less
       * than {@code upper}.
       *
       * @throws IllegalArgumentException if {@code lower} is greater than <i>or equal to</i> {@code
       *     upper}
       * @throws ClassCastException if {@code lower} and {@code upper} are not mutually comparable
       * @since 14.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

         * @throws IllegalArgumentException when
         */
        public void setRequestType(final int requestType) {
            switch (requestType) {
                case REQUEST_PUT:
                    break;
                case REQUEST_GET:
                    break;
                default:
                    throw new IllegalArgumentException("Illegal request type: " + requestType);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

    public final class BigIntegerMath {
      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
       * {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
      public static BigInteger ceilingPowerOfTwo(BigInteger x) {
        return BigInteger.ZERO.setBit(log2(x, CEILING));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/net/MediaType.java

       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createApplicationType(String subtype) {
        return create(APPLICATION_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "audio" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

          if (b != (byte) 0xff) {
            return false;
          }
        }
        return true;
      }
    
      private static IllegalArgumentException formatIllegalArgumentException(
          String format, Object... args) {
        return new IllegalArgumentException(String.format(Locale.ROOT, format, args));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/ReflectionFreeAssertThrows.java

              .put(ExecutionError.class, e -> e instanceof ExecutionError)
              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public int drainTo(Collection<? super E> c) {
        if (c == null) throw new NullPointerException();
        if (c == this) throw new IllegalArgumentException();
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactCoordinatesFactory.java

        /**
         * Creates artifact coordinates.
         *
         * @param request the request holding coordinates creation parameters
         * @return an {@code ArtifactCoordinates}, never {@code null}
         * @throws IllegalArgumentException if {@code request} is null or {@code request.session} is null or invalid
         */
        @Nonnull
        ArtifactCoordinates create(@Nonnull ArtifactCoordinatesFactoryRequest request);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      private void assertSetCountNegativeOldCount() {
        try {
          getMultiset().setCount(e3(), -1, 1);
          fail("calling setCount() with a negative oldCount should throw IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // Negative oldCount.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addSupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.register(new Object());
      }
    
      public void testUnregister() {
        StringCatcher catcher1 = new StringCatcher();
        StringCatcher catcher2 = new StringCatcher();
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.register(catcher1);
        bus.post(EVENT);
        bus.register(catcher2);
        bus.post(EVENT);
    
        List<String> expectedEvents = Lists.newArrayList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top