Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for argument (0.16 sec)

  1. android/guava/src/com/google/common/net/InetAddresses.java

       * @return {@link InetAddress} representing the argument
       * @throws IllegalArgumentException if the argument is not a valid IP string literal
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static InetAddress forString(String ipString) {
        byte[] addr = ipStringToBytes(ipString);
    
        // The argument was malformed, i.e. not an IP string literal.
        if (addr == null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

            assertEquals("Default value for parameter #" + i, expectedValues[i], arguments.get(i));
          }
        }
    
        final Object getDefaultParameterValue(int position) {
          return arguments.get(position);
        }
    
        final void calledWith(Object... args) {
          for (int i = 0; i < args.length; i++) {
            if (args[i] != null) {
              arguments.put(i, args[i]);
            }
          }
          for (Object arg : args) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix.
        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

            pos += lenToRead;
            return lenToRead;
          }
        }
      }
    
      /**
       * @param input the size of the input source
       * @param offset the first argument to {@link ByteSource#slice}
       * @param length the second argument to {@link ByteSource#slice}
       * @param expectRead the number of bytes we expect to read
       */
      private static void assertCorrectSlice(int input, int offset, long length, int expectRead)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTest.java

            pos += lenToRead;
            return lenToRead;
          }
        }
      }
    
      /**
       * @param input the size of the input source
       * @param offset the first argument to {@link ByteSource#slice}
       * @param length the second argument to {@link ByteSource#slice}
       * @param expectRead the number of bytes we expect to read
       */
      private static void assertCorrectSlice(int input, int offset, long length, int expectRead)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(9, (int) numberOrdering.max(ints.iterator()));
        assertEquals(0, (int) numberOrdering.min(ints.iterator()));
    
        // when the values are the same, the first argument should be returned
        Integer a = new Integer(4);
        Integer b = new Integer(4);
        ints = Lists.newArrayList(a, b, b);
        assertSame(a, numberOrdering.max(ints.iterator()));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(9, (int) numberOrdering.max(ints.iterator()));
        assertEquals(0, (int) numberOrdering.min(ints.iterator()));
    
        // when the values are the same, the first argument should be returned
        Integer a = new Integer(4);
        Integer b = new Integer(4);
        ints = Lists.newArrayList(a, b, b);
        assertSame(a, numberOrdering.max(ints.iterator()));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Joiner.java

        List<?> partsList = Arrays.<@Nullable Object>asList(parts);
        return join(partsList);
      }
    
      /**
       * Returns a string containing the string representation of each argument, using the previously
       * configured separator between each.
       */
      public final String join(
          @CheckForNull Object first, @CheckForNull Object second, @Nullable Object... rest) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Optional.java

      }
    
      /**
       * Returns the equivalent {@code com.google.common.base.Optional} value to the given {@code
       * java.util.Optional}, or {@code null} if the argument is null.
       *
       * @since 21.0
       */
      @CheckForNull
      public static <T> Optional<T> fromJavaUtil(@CheckForNull java.util.Optional<T> javaUtilOptional) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       * Returns an ordering that compares objects according to the order in which they are given to
       * this method. Only objects present in the argument list (according to {@link Object#equals}) may
       * be compared. This comparator imposes a "partial ordering" over the type {@code T}. Null values
       * in the argument list are not supported.
       *
       * <p>The returned comparator throws a {@link ClassCastException} when it receives an input
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top