Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 99 for Every (0.22 sec)

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

          }
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
      public void testRoundExactIntegralDoubleToLong() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
          // every mode except UNNECESSARY
          BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY);
          boolean isInBounds =
              expected.compareTo(MAX_LONG_AS_BIG_DECIMAL) <= 0
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

      }
    
      /**
       * Notifies listeners that an entry has been automatically removed due to expiration, eviction, or
       * eligibility for garbage collection. This should be called every time expireEntries or
       * evictEntry is called (once the lock is released).
       */
      void processPendingNotifications() {
        RemovalNotification<K, V> notification;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

          public void perform(List<Integer> list) {}
        };
      }
    
      /** A list that mutates itself after every call to each of its {@link List} methods. */
      interface ConcurrentlyMutatedList<E> extends List<E> {
        /**
         * The elements of a {@link ConcurrentlyMutatedList} are added and removed over time. This
         * method returns every state that the list has passed through at some point.
         */
        Set<List<E>> getAllStates();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/BigIntegerMath.java

         * guess with an application of Newton's method, which sets guess := (guess + (x / guess)) / 2.
         * This iteration has the following two properties:
         *
         * a) every iteration (except potentially the first) has guess >= floor(sqrt(x)). This is
         * because guess' is the arithmetic mean of guess and x / guess, sqrt(x) is the geometric mean,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) {
            runCleanup();
          }
        }
    
        /**
         * Performs routine cleanup prior to executing a write. This should be called every time a write
         * thread acquires the segment lock, immediately after acquiring the lock.
         */
        @GuardedBy("this")
        void preWriteCleanup() {
          runLockedCleanup();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/Graphs.java

      public static <N> ImmutableGraph<N> transitiveClosure(Graph<N> graph) {
        ImmutableGraph.Builder<N> transitiveClosure =
            GraphBuilder.from(graph).allowsSelfLoops(true).<N>immutable();
        // Every node is, at a minimum, reachable from itself. Since the resulting transitive closure
        // will have no isolated nodes, we can skip adding nodes explicitly and let putEdge() do it.
    
        if (graph.isDirected()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedSet.java

          checkNotNull(element);
          copyIfNecessary();
          if (n == elements.length) {
            sortAndDedup();
            /*
             * Sorting operations can only be allowed to occur once every O(n) operations to keep
             * amortized O(n log n) performance.  Therefore, ensure there are at least O(n) *unused*
             * spaces in the builder array.
             */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Converter.java

     */
    public abstract class Converter<A, B> implements Function<A, B> {
      private final boolean handleNullAutomatically;
    
      // We lazily cache the reverse view to avoid allocating on every call to reverse().
      @LazyInit @RetainedWith @CheckForNull private transient Converter<B, A> reverse;
    
      /** Constructor for use by subclasses. */
      protected Converter() {
        this(true);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/base/Suppliers.java

            synchronized (this) {
              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
                nanos = now + durationNanos;
                // In the very unlikely event that nanos is 0, set it to 1;
                // no one will notice 1 ns of tardiness.
                expirationNanos = (nanos == 0) ? 1 : nanos;
                return t;
              }
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/Network.java

       *
       * <ul>
       *   <li>A and B have equal {@link #isDirected() directedness}.
       *   <li>A and B have equal {@link #nodes() node sets}.
       *   <li>A and B have equal {@link #edges() edge sets}.
       *   <li>Every edge in A and B connects the same nodes in the same direction (if any).
       * </ul>
       *
       * <p>Network properties besides {@link #isDirected() directedness} do <b>not</b> affect equality.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
Back to top