Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for libraries (0.2 sec)

  1. guava/src/com/google/common/base/package-info.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    /**
     * Basic utility libraries and interfaces.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <h2>Contents</h2>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 16:48:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    import static java.util.regex.Pattern.quote;
    
    /**
     * NOTICE: this class is invoked via java command line, so we must NOT DEPEND ON ANY 3RD-PARTY LIBRARIES except JDK 11.
     *
     * Usage: java build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java
     */
    public class KillLeakingJavaProcesses {
        enum ExecutionMode {
            /**
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 26 09:46:00 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testObjectHashCode() {
        HashCode hashCode42 = HashCode.fromInt(42);
        assertEquals(42, hashCode42.hashCode());
      }
    
      // See https://code.google.com/p/guava-libraries/issues/detail?id=1494
      public void testObjectHashCodeWithSameLowOrderBytes() {
        // These will have the same first 4 bytes (all 0).
        byte[] bytesA = new byte[5];
        byte[] bytesB = new byte[5];
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N, writer2.toString());
        assertEquals(I18N.length(), copied);
      }
    
      /**
       * Test for Guava issue 1061: http://code.google.com/p/guava-libraries/issues/detail?id=1061
       *
       * <p>CharStreams.copy was failing to clear its CharBuffer after each read call, which effectively
       * reduced the available size of the buffer each time a call to read didn't fill up the available
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N, writer2.toString());
        assertEquals(I18N.length(), copied);
      }
    
      /**
       * Test for Guava issue 1061: http://code.google.com/p/guava-libraries/issues/detail?id=1061
       *
       * <p>CharStreams.copy was failing to clear its CharBuffer after each read call, which effectively
       * reduced the available size of the buffer each time a call to read didn't fill up the available
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R0.50", "R0.00", "R0.00"); // we repay the last request (.5sec), then back to +oo
      }
    
      /** https://code.google.com/p/guava-libraries/issues/detail?id=1791 */
      public void testInfinity_BustyTimeElapsed() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        stopwatch.instant += 1000000;
        limiter.setRate(2.0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testObjectHashCode() {
        HashCode hashCode42 = HashCode.fromInt(42);
        assertEquals(42, hashCode42.hashCode());
      }
    
      // See https://code.google.com/p/guava-libraries/issues/detail?id=1494
      public void testObjectHashCodeWithSameLowOrderBytes() {
        // These will have the same first 4 bytes (all 0).
        byte[] bytesA = new byte[5];
        byte[] bytesB = new byte[5];
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int n = 1; n < 1000; n++) {
          for (int m = 0; m < 1000; m++) {
            assertTrue(BloomFilter.optimalNumOfHashFunctions(n, m) > 0);
          }
        }
      }
    
      // https://code.google.com/p/guava-libraries/issues/detail?id=1781
      public void testOptimalNumOfHashFunctionsRounding() {
        assertEquals(7, BloomFilter.optimalNumOfHashFunctions(319, 3072));
      }
    
      /** Tests that we always get a non-negative optimal size. */
    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)
  9. android/guava/src/com/google/common/reflect/Types.java

          return Types.toString(type);
        }
    
        boolean jdkTypeDuplicatesOwnerName() {
          return true;
        }
      }
    
      /**
       * Per <a href="https://code.google.com/p/guava-libraries/issues/detail?id=1635">issue 1635</a>,
       * In JDK 1.7.0_51-b13, {@link TypeVariableImpl#equals(Object)} is changed to no longer be equal
       * to custom TypeVariable implementations. As a result, we need to make sure our TypeVariable
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R0.50", "R0.00", "R0.00"); // we repay the last request (.5sec), then back to +oo
      }
    
      /** https://code.google.com/p/guava-libraries/issues/detail?id=1791 */
      public void testInfinity_BustyTimeElapsed() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        stopwatch.instant += 1000000;
        limiter.setRate(2.0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top