Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,135 for condition (0.45 sec)

  1. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

            //
            // Note that there is a race condition here which can result in missing
            // a cyclic edge: it's possible for two threads to simultaneous find
            // "safe" edges which together form a cycle. Preventing this race
            // condition efficiently without _introducing_ deadlock is probably
            // tricky. For now, just accept the race condition---missing a warning
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Striped.java

          return delegate;
        }
    
        @Override
        public Condition newCondition() {
          return new WeakSafeCondition(delegate.newCondition(), strongReference);
        }
      }
    
      /** Condition object that ensures a strong reference is retained to a specified object. */
      private static final class WeakSafeCondition extends ForwardingCondition {
        private final Condition delegate;
    
        @SuppressWarnings("unused")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  3. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

            itemInfo,
            unrelatedInfo,
            !equivalence.equivalent(itemInfo.value, unrelatedInfo.value));
      }
    
      private void assertWithTemplate(String template, Item<T> item, Item<T> other, boolean condition) {
        if (!condition) {
          throw new AssertionFailedError(
              template
                  .replace("$RELATIONSHIP", relationshipName)
                  .replace("$HASH", hashName)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableTable.java

          ImmutableList<Cell<R, C, V>> cellList,
          ImmutableSet<R> rowSpace,
          ImmutableSet<C> columnSpace) {
        // use a dense table if more than half of the cells have values
        // TODO(gak): tune this condition based on empirical evidence
        return (cellList.size() > (((long) rowSpace.size() * columnSpace.size()) / 2))
            ? new DenseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

         *     has been modified, but not always: in the case that {@code oldCount == newCount}, the
         *     method will return {@code true} if the condition was met.
         * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is negative
         */
        @Override
        public boolean setCount(E element, int oldCount, int newCount) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Utf8.java

          } else {
            utf8Length += encodedLengthGeneral(sequence, i);
            break;
          }
        }
    
        if (utf8Length < utf16Length) {
          // Necessary and sufficient condition for overflow because of maximum 3x expansion
          throw new IllegalArgumentException(
              "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32)));
        }
        return utf8Length;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java

    import java.util.Date;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.locks.Condition;
    
    /** Forwarding wrapper around a {@code Condition}. */
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class ForwardingCondition implements Condition {
      abstract Condition delegate();
    
      @Override
      public void await() throws InterruptedException {
        delegate().await();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      }
    
      /** Specifies that classes that satisfy the given predicate aren't tested for sanity. */
      protected final void ignoreClasses(Predicate<? super Class<?>> condition) {
        this.classFilter = and(this.classFilter, not(condition));
      }
    
      private static AssertionFailedError sanityError(
          Class<?> cls, List<String> explicitTestNames, String description, Throwable e) {
        String message =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       *     been modified, but not always: in the case that {@code expectedOldCount == newCount}, the
       *     method will return {@code true} if the condition was met.
       * @throws IllegalArgumentException if {@code expectedOldCount} or {@code newCount} is negative
       */
      @CanIgnoreReturnValue
      @Override
    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)
  10. android/guava/src/com/google/common/math/LongMath.java

           * up to give roundArbitrarily equal to 2^63, so the conversion back to long overflows and
           * roundArbitrarilyAsLong is Long.MAX_VALUE. (This is the only way this condition can occur as
           * otherwise the conversion back to long pads with zero bits.) In this case we know that
           * roundArbitrarily > x. (This is important when x == Long.MAX_VALUE ==
           * roundArbitrarilyAsLong.)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
Back to top