Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 310 for ceiling (0.17 sec)

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

    import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES;
    import static com.google.common.math.MathTesting.POSITIVE_FINITE_DOUBLE_CANDIDATES;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/BaseEncoding.java

    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.math.IntMath.divide;
    import static com.google.common.math.IntMath.log2;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.UNNECESSARY;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

        @Override
        @CheckForNull
        public E floor(@ParametricNullness E e) {
          return delegate.floor(e);
        }
    
        @Override
        @CheckForNull
        public E ceiling(@ParametricNullness E e) {
          return delegate.ceiling(e);
        }
    
        @Override
        @CheckForNull
        public E higher(@ParametricNullness E e) {
          return delegate.higher(e);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TopKSelector.java

        // The leftmost position at which the greatest of the k lower elements
        // -- the new value of threshold -- might be found.
    
        int iterations = 0;
        int maxIterations = IntMath.log2(right - left, RoundingMode.CEILING) * 3;
        while (left < right) {
          int pivotIndex = (left + right + 1) >>> 1;
    
          int pivotNewIndex = partition(left, right, pivotIndex);
    
          if (pivotNewIndex > k) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          E higher = iterator.next();
          if (comparator().compare(e, higher) < 0) {
            return higher;
          }
        }
        return null;
      }
    
      @CheckForNull
      public E ceiling(E e) {
        ImmutableSortedSet<E> set = tailSet(e, true);
        return !set.isEmpty() ? set.first() : null;
      }
    
      @CheckForNull
      public E floor(E e) {
        ImmutableSortedSet<E> set = headSet(e, true);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        NavigableSet<E> delegate() {
          return (NavigableSet<E>) super.delegate();
        }
    
        @Override
        @CheckForNull
        public E ceiling(E e) {
          synchronized (mutex) {
            return delegate().ceiling(e);
          }
        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return delegate().descendingIterator(); // manually synchronized
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Splitter.java

       * yield an empty iterable, but an iterable containing {@code ""}. This is the only case in which
       * {@code Iterables.size(split(input))} does not equal {@code IntMath.divide(input.length(),
       * length, CEILING)}. To avoid this behavior, use {@code omitEmptyStrings}.
       *
       * @param length the desired length of pieces after splitting, a positive integer
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Splitter.java

       * yield an empty iterable, but an iterable containing {@code ""}. This is the only case in which
       * {@code Iterables.size(split(input))} does not equal {@code IntMath.divide(input.length(),
       * length, CEILING)}. To avoid this behavior, use {@code omitEmptyStrings}.
       *
       * @param length the desired length of pieces after splitting, a positive integer
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSet.java

        return Math.max(
            ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY,
            IntMath.sqrt(inputElementsIncludingAnyDuplicates, RoundingMode.CEILING));
      }
    
      private static final long serialVersionUID = 0xcafebabe;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

      @CheckForNull
      public E floor(E e) {
        return Iterators.<@Nullable E>getNext(headSet(e, true).descendingIterator(), null);
      }
    
      /** @since 12.0 */
      @Override
      @CheckForNull
      public E ceiling(E e) {
        return Iterables.<@Nullable E>getFirst(tailSet(e, true), null);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      @CheckForNull
      public E higher(E e) {
    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)
Back to top