Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for system (0.24 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] prefix = {"f", "g"};
          String[] suffix = {"h", "i"};
    
          String[] all = new String[2 + elements.length + 2];
          System.arraycopy(prefix, 0, all, 0, 2);
          System.arraycopy(elements, 0, all, 2, elements.length);
          System.arraycopy(suffix, 0, all, 2 + elements.length, 2);
    
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureInnocuousThreadTest.java

        SettableFuture<?> unused = SettableFuture.create();
        // Hack to load AbstractFuture et. al. in a new classloader so that it tries to re-read the
        // cancellation-cause system property. This allows us to test what happens if reading the
        // property is forbidden and then continue running tests normally in one jvm without resorting
        // to even crazier hacks to reset static final boolean fields.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 5.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/FinalizableReferenceQueue.java

      }
    
      /**
       * Tries to load Finalizer from the system class loader. If Finalizer is in the system class path,
       * we needn't create a separate loader.
       */
      static class SystemLoader implements FinalizerLoader {
        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
        // finding Finalizer on the system class path even if it is there.
        @VisibleForTesting static boolean disabled;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

      }
    
      /**
       * Tries to load Finalizer from the system class loader. If Finalizer is in the system class path,
       * we needn't create a separate loader.
       */
      static class SystemLoader implements FinalizerLoader {
        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
        // finding Finalizer on the system class path even if it is there.
        @VisibleForTesting static boolean disabled;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

          res +=
              System.identityHashCode(
                  hashFunctionEnum
                      .getHashFunction()
                      .hashString(strings[i & SAMPLE_MASK], StandardCharsets.UTF_8));
        }
        return res;
      }
    
      @Benchmark
      int hashUtf8Hasher(int reps) {
        int res = 0;
        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/DeadEvent.java

    /**
     * Wraps an event that was posted, but which had no subscribers and thus could not be delivered.
     *
     * <p>Registering a DeadEvent subscriber is useful for debugging or logging, as it can detect
     * misconfigurations in a system's event distribution.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    public class DeadEvent {
    
      private final Object source;
      private final Object event;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/CharSink.java

       * the operating system's default line separator. This method is equivalent to {@code
       * writeLines(lines, System.getProperty("line.separator"))}.
       *
       * @throws IOException if an I/O error occurs while writing to this sink
       */
      public void writeLines(Iterable<? extends CharSequence> lines) throws IOException {
        writeLines(lines, System.getProperty("line.separator"));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

      public int encode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.encode(encodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
      @Benchmark
      public int decode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.decode(decodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // TimeUnit.timedJoin() treats negative timeouts just like zero.
              NANOSECONDS.timedJoin(thread, remainingNanos);
              return;
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharSinkTester.java

      public void testWrite() throws IOException {
        sink.write(data);
    
        assertContainsExpectedString();
      }
    
      public void testWriteLines_systemDefaultSeparator() throws IOException {
        String separator = System.getProperty("line.separator");
        sink.writeLines(lines);
    
        assertContainsExpectedLines(separator);
      }
    
      public void testWriteLines_specificSeparator() throws IOException {
        String separator = "\r\n";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4.4K bytes
    - Viewed (0)
Back to top