Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for _settings (0.2 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        SettableFuture<?> unused = SettableFuture.create();
        // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation
        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultiset.java

            } else if (count > 0 && result[0] == 0) {
              this.distinctElements++;
            }
    
            this.totalCount += count - result[0];
            return rebalance();
          }
    
          // setting my count
          result[0] = elemCount;
          if (count == 0) {
            return deleteMe();
          }
          this.totalCount += count - elemCount;
          this.elemCount = count;
          return this;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Monitor.java

        return lock.tryLock(time, unit);
      }
    
      /**
       * Enters this monitor if it is possible to do so immediately. Does not block.
       *
       * <p><b>Note:</b> This method disregards the fairness setting of this monitor.
       *
       * @return whether the monitor was entered
       */
      public boolean tryEnter() {
        return lock.tryLock();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //     /**
      //      * Runs all JSR166 unit tests using junit.textui.TestRunner
      //      */
      //     public static void main(String[] args) {
      //         if (useSecurityManager) {
      //             System.err.println("Setting a permissive security manager");
      //             Policy.setPolicy(permissivePolicy());
      //             System.setSecurityManager(new SecurityManager());
      //         }
    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)
  5. android/guava/src/com/google/common/collect/Iterables.java

          List<T> list, Predicate<? super T> predicate) {
        // Note: Not all random access lists support set(). Additionally, it's possible
        // for a list to reject setting an element, such as when the list does not permit
        // duplicate elements. For both of those cases,  we need to fall back to a slower
        // implementation.
        int from = 0;
        int to = 0;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    getting late.'  So Alice got up and ran off, thinking while she
    ran, as well she might, what a wonderful dream it had been.
    
      But her sister sat still just as she left her, leaning her
    head on her hand, watching the setting sun, and thinking of
    little Alice and all her wonderful Adventures, till she too began
    dreaming after a fashion, and this was her dream:--
    
      First, she dreamed of little Alice herself, and once again the
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        SettableFuture<?> unused = SettableFuture.create();
        // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation
        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            Serialization.getFieldSetter(ConcurrentHashMultiset.class, "countMap");
      }
    
      /**
       * Creates a new, empty {@code ConcurrentHashMultiset} using the default initial capacity, load
       * factor, and concurrency settings.
       */
      public static <E> ConcurrentHashMultiset<E> create() {
        // TODO(schmoe): provide a way to use this class with other (possibly arbitrary)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(20, ticker.read());
    
        for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) {
          ticker.setAutoIncrementStep(0, timeUnit);
          assertEquals(
              "Expected no auto-increment when setting autoIncrementStep to 0 " + timeUnit,
              30,
              ticker.read());
        }
      }
    
      public void testAutoIncrement_negative() {
        FakeTicker ticker = new FakeTicker();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/escape/EscapersTest.java

        Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build();
        assertEquals("\0\uFFFF", escaper.escape("\0\uFFFF"));
      }
    
      public void testBuilderRetainsState() {
        // Setting a safe range and unsafe replacement works as expected.
        Escapers.Builder builder = Escapers.builder();
        builder.setSafeRange('a', 'z');
        builder.setUnsafeReplacement("X");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5K bytes
    - Viewed (0)
Back to top