Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 93 for ParseInt (0.05 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_SPECIFICATION_VERSION;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Integer.parseInt;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.reflect.Method;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_SPECIFICATION_VERSION;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Integer.parseInt;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.reflect.Method;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Ints.java

       *
       * <p>Unlike {@link Integer#parseInt(String)}, this method returns {@code null} instead of
       * throwing an exception if parsing fails. Additionally, this method only accepts ASCII digits,
       * and returns {@code null} if non-ASCII digits are present in the string.
       *
       * <p>Note that strings prefixed with ASCII {@code '+'} are rejected, even though {@link
       * Integer#parseInt(String)} accepts them.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 31.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/ConverterTest.java

        assertThat(Converter.identity()).isSameInstanceAs(Converter.identity());
      }
    
      public void testFrom() {
        Function<String, Integer> forward = Integer::parseInt;
        Function<Object, String> backward = toStringFunction();
    
        Converter<String, Number> converter = Converter.<String, Number>from(forward, backward);
    
        assertThat(converter.convert(null)).isNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/testing/CollectorTester.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester for {@code Collector} implementations.
     *
     * <p>Example usage:
     *
     * <pre>
     * CollectorTester.of(Collectors.summingInt(Integer::parseInt))
     *     .expectCollects(3, "1", "2")
     *     .expectCollects(10, "1", "4", "3", "2")
     *     .expectCollects(5, "-3", "0", "8");
     * </pre>
     *
     * @author Louis Wasserman
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu May 15 21:47:56 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code int} value
       * @throws NullPointerException if {@code s} is null (in contrast to {@link
       *     Integer#parseInt(String)})
       */
      @CanIgnoreReturnValue
      public static int parseUnsignedInt(String s) {
        return parseUnsignedInt(s, 10);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/CollectorTester.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester for {@code Collector} implementations.
     *
     * <p>Example usage:
     *
     * <pre>
     * CollectorTester.of(Collectors.summingInt(Integer::parseInt))
     *     .expectCollects(3, "1", "2")
     *     .expectCollects(10, "1", "4", "3", "2")
     *     .expectCollects(5, "-3", "0", "8");
     * </pre>
     *
     * @author Louis Wasserman
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 22:01:32 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

    import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Integer.parseInt;
    import static java.util.Arrays.asList;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.MINUTES;
    
    import com.google.common.cache.TestingCacheLoaders.IdentityLoader;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

       * {@code null} if non-ASCII digits are present in the string.
       *
       * <p>Note that strings prefixed with ASCII {@code '+'} are rejected, even though {@link
       * Integer#parseInt(String)} accepts them.
       *
       * @param string the string representation of a long value
       * @return the long value represented by {@code string}, or {@code null} if {@code string} has a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/net/InetAddressesTest.java

     */
    
    package com.google.common.net;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Integer.parseInt;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableSet;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top