Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for rebeat (0.14 sec)

  1. guava/src/com/google/common/base/Throwables.java

       * @deprecated Use a combination of {@link #throwIfInstanceOf} and {@link #throwIfUnchecked},
       *     which togther provide the same behavior except that they reject {@code null}.
       */
      @Deprecated
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
      public static <X extends Throwable> void propagateIfPossible(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Throwables.java

       * @deprecated Use a combination of {@link #throwIfInstanceOf} and {@link #throwIfUnchecked},
       *     which togther provide the same behavior except that they reject {@code null}.
       */
      @Deprecated
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
      public static <X extends Throwable> void propagateIfPossible(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Strings.java

       * example, {@code repeat("hey", 3)} returns the string {@code "heyheyhey"}.
       *
       * <p><b>Java 11+ users:</b> use {@code string.repeat(count)} instead.
       *
       * @param string any non-null string
       * @param count the number of times to repeat it; a nonnegative integer
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        assertEquals(8581389452482819506L, fingerprint("test".getBytes(UTF_8)));
        // 32 characters long
        assertEquals(-4196240717365766262L, fingerprint(Strings.repeat("test", 8).getBytes(UTF_8)));
        // 256 characters long
        assertEquals(3500507768004279527L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8)));
      }
    
      public void testStringsConsistency() {
        for (String s : Arrays.asList("", "some", "test", "strings", "to", "try")) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      /** A domain part which is valid under lenient validation, but invalid under strict validation. */
      static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62);
    
      private static final String ALMOST_TOO_MANY_LEVELS = Strings.repeat("a.", 127);
    
      private static final String ALMOST_TOO_LONG = Strings.repeat("aaaaa.", 40) + "1234567890.c";
    
      private static final ImmutableSet<String> VALID_NAME =
          ImmutableSet.of(
              "foo.com",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int count;
    
      @Param({"0", "1", "16", "32", "100"})
      int componentLength;
    
      private Iterable<String> components;
    
      @BeforeExperiment
      void setUp() {
        String component = Strings.repeat("a", componentLength);
        String[] raw = new String[count];
        Arrays.fill(raw, component);
        components = Arrays.asList(raw);
      }
    
      /** {@link Joiner} with a string delimiter. */
      @Benchmark
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingListIteratorTest.java

    import com.google.common.testing.ForwardingWrapperTester;
    import java.util.ListIterator;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@code ForwardingListIterator}.
     *
     * @author Robert Konigsberg
     */
    public class ForwardingListIteratorTest extends TestCase {
    
      @SuppressWarnings("rawtypes")
      public void testForwarding() {
        new ForwardingWrapperTester()
            .testForwarding(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

            assertTrue(BloomFilter.optimalNumOfBits(n, fpp) >= 0);
          }
        }
    
        // some random values
        Random random = new Random(0);
        for (int repeats = 0; repeats < 10000; repeats++) {
          assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
Back to top