Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for Creator (0.15 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        }
    
        for (int i = 0; i < 10; i++) {
          loader.reset();
          assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i));
          assertFalse("Creator should not have been called @#" + i, loader.wasCalled());
        }
    
        CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker);
    
        assertEquals("Map must be empty by now", 0, cache.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        }
    
        for (int i = 0; i < 10; i++) {
          loader.reset();
          assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i));
          assertFalse("Creator should not have been called @#" + i, loader.wasCalled());
        }
    
        CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker);
    
        assertEquals("Map must be empty by now", 0, cache.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ComparisonChain.java

              return (result < 0) ? LESS : (result > 0) ? GREATER : ACTIVE;
            }
    
            @Override
            public int result() {
              return 0;
            }
          };
    
      private static final ComparisonChain LESS = new InactiveComparisonChain(-1);
    
      private static final ComparisonChain GREATER = new InactiveComparisonChain(1);
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

       * greater than or equal to that.
       */
      private static int partition(double[] array, int from, int to) {
        // Select a pivot, and move it to the start of the slice i.e. to index from.
        movePivotToStartOfSlice(array, from, to);
        double pivot = array[from];
    
        // Move all elements with indexes in (from, to] which are greater than the pivot to the end of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/DiscreteDomain.java

          }
        }
        return current;
      }
    
      /**
       * Returns the unique least value of type {@code C} that is greater than {@code value}, or {@code
       * null} if none exists. Inverse operation to {@link #previous}.
       *
       * @param value any value of type {@code C}
       * @return the least value greater than {@code value}, or {@code null} if {@code value} is {@code
       *     maxValue()}
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * than {@code toKey}.
       *
       * <p>The {@link SortedMap#headMap} documentation states that a submap of a submap throws an
       * {@link IllegalArgumentException} if passed a {@code toKey} greater than an earlier {@code
       * toKey}. However, this method doesn't throw an exception in that situation, but instead keeps
       * the original {@code toKey}.
       */
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SortedMultiset.java

          @ParametricNullness E lowerBound,
          BoundType lowerBoundType,
          @ParametricNullness E upperBound,
          BoundType upperBoundType);
    
      /**
       * Returns a view of this multiset restricted to the elements greater than {@code lowerBound},
       * optionally including {@code lowerBound} itself. The returned multiset is a view of this
       * multiset, so changes to one will be reflected in the other. The returned multiset supports all
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

          suite.addTest(
              suiteForBytes(
                  slicedLongMaxValue, bytes, name + ".slice[long, Long.MAX_VALUE]", desc, false));
    
          // test a slice() of the ByteSource starting at an offset greater than its size
          ByteSourceFactory slicedOffsetPastEnd =
              SourceSinkFactories.asSlicedByteSourceFactory(
                  factory, expected.length + 2, expected.length + 10);
          suite.addTest(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

       * @param size the size of that array, list or string
       * @return the value of {@code index}
       * @throws IndexOutOfBoundsException if {@code index} is negative or is greater than {@code size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      @CanIgnoreReturnValue
      public static int checkPositionIndex(int index, int size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top