Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 321 for read (0.18 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
        assertTrue(map.containsKey(key));
        assertSame(entry, segment.accessQueue.peek());
        assertEquals(1, segment.accessQueue.size());
    
        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
        assertTrue(map.containsKey(key));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
        assertTrue(map.containsKey(key));
        assertSame(entry, segment.accessQueue.peek());
        assertEquals(1, segment.accessQueue.size());
    
        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
        assertTrue(map.containsKey(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            // Permissions needed by the junit test harness
            new RuntimePermission("accessDeclaredMembers"),
            new PropertyPermission("*", "read"),
            new java.io.FilePermission("<<ALL FILES>>", "read"));
      }
    
      /** Sleeps until the given time has elapsed. Throws AssertionFailedError if interrupted. */
      void sleep(long millis) {
        try {
          delay(millis);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Stopwatch.java

       */
      @CanIgnoreReturnValue
      public Stopwatch start() {
        checkState(!isRunning, "This stopwatch is already running.");
        isRunning = true;
        startTick = ticker.read();
        return this;
      }
    
      /**
       * Stops the stopwatch. Future reads will return the fixed duration that had elapsed up to this
       * point.
       *
       * @return this {@code Stopwatch} instance
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ReaderInputStream.java

        reader.close();
      }
    
      @Override
      public int read() throws IOException {
        return (read(singleByte) == 1) ? UnsignedBytes.toInt(singleByte[0]) : -1;
      }
    
      // TODO(chrisn): Consider trying to encode/flush directly to the argument byte
      // buffer when possible.
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        // Obey InputStream contract.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/IoTestCase.java

        InputStream in = url.openStream();
        try {
          OutputStream out = new FileOutputStream(file);
          try {
            byte[] buf = new byte[4096];
            for (int read = in.read(buf); read != -1; read = in.read(buf)) {
              out.write(buf, 0, read);
            }
          } finally {
            out.close();
          }
        } finally {
          in.close();
        }
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. .github/workflows/scorecard.yml

      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
      schedule:
        - cron: '45 9 * * 0'
      push:
        branches: [ "master" ]
    
    # Declare default permissions as read only.
    permissions: read-all
    
    jobs:
      analysis:
        name: Scorecard analysis
        runs-on: ubuntu-latest
        permissions:
          # Needed to upload the results to code-scanning dashboard.
          security-events: write
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

       * @deprecated Prefer {@code asCharSource(file, charset).read()}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSource(file, charset).read()",
          imports = "com.google.common.io.Files")
      public static String toString(File file, Charset charset) throws IOException {
        return asCharSource(file, charset).read();
      }
    
      /**
       * Overwrites a file with the contents of a byte array.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/BaseEncoding.java

              checkPositionIndexes(off, off + len, buf.length);
    
              int i = off;
              for (; i < off + len; i++) {
                int b = read();
                if (b == -1) {
                  int read = i - off;
                  return read == 0 ? -1 : read;
                }
                buf[i] = (byte) b;
              }
              return i - off;
            }
    
            @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            Did you *actually* encounter the need for this enhancement in a real-world scenario, or does
            it just seem like a sensible behavior for the feature to have?
    
    
            Before we make significant changes to existing features in Guava, we really want to be sure
            that it's for a use case that actually comes up in the real world. We want to hear the
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top