Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 62 for cark (0.13 sec)

  1. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertThat(expected).hasMessageThat().isEqualTo("Mark not set");
      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(big[1], small[3]);
      }
    
      public void testLimit_mark() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        int read = lin.read();
        assertEquals(big[0], read);
        lin.mark(2);
    
        read = lin.read();
        assertEquals(big[1], read);
        read = lin.read();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public int compareTo(Delayed other) {
          throw new UnsupportedOperationException("test should not care about this");
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

         * the combiner is almost certain to hold its own reference to the futures, and a real app would
         * hold a reference to the executor and thus to the combiner. What we really care about is that
         * the futures are released once the combiner is done running. But we happen to provide this
         * earlier cleanup at the moment, so we're testing it.
         */
        GcFinalization.awaitClear(future1Ref);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        return s.charAt(rand.nextInt(s.length()));
      }
    
      /**
       * Provides samples on a random distribution derived from the web.
       *
       * <p>Adapted from data provided by Mark Davis.
       *
       * @author Christopher Swenson
       */
      static class CharSamples {
    
        static {
          populateProb1();
          populateProb2();
          populateChars1();
          populateChars2();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

               * well be a JDK bug.
               */
              || info.getName().contains("TypeTokenTest")
          /*
           * Luckily, we don't care about analyzing tests at all. We'd skip them all if we could do so
           * trivially, but it's enough to skip these ones.
           */
          ) {
            continue;
          }
          Class<?> clazz = info.load();
          try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

               * well be a JDK bug.
               */
              || info.getName().contains("TypeTokenTest")
          /*
           * Luckily, we don't care about analyzing tests at all. We'd skip them all if we could do so
           * trivially, but it's enough to skip these ones.
           */
          ) {
            continue;
          }
          Class<?> clazz = info.load();
          try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          // timed out. e.g. if we weren't event able to grab the lock within the timeout we would never
          // even check the guard. I don't think we care too much about this use case but it could lead
          // to a confusing error message.
          throw new TimeoutException("Timed out waiting for " + this + " to reach the RUNNING state.");
        }
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMaker.java

       * concurrency than full synchronization. Defaults to 4.
       *
       * <p><b>Note:</b> Prior to Guava release 9.0, the default was 16. It is possible the default will
       * change again in the future. If you care about this value, you should always choose it
       * explicitly.
       *
       * @throws IllegalArgumentException if {@code concurrencyLevel} is nonpositive
       * @throws IllegalStateException if a concurrency level was already set
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/CharMatcher.java

        return Ascii.INSTANCE;
      }
    
      /**
       * Determines whether a character is a BMP digit according to <a
       * href="http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5Cp%7Bdigit%7D">Unicode</a>. If
       * you only care to match ASCII digits, you can use {@code inRange('0', '9')}.
       *
       * @deprecated Many digits are supplementary characters; see the class documentation.
       * @since 19.0 (since 1.0 as constant {@code DIGIT})
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top