Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for both (0.16 sec)

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

      public void testRoundToDouble_twoToThe54PlusOne() {
        double twoToThe54 = Math.pow(2, 54);
        // the representable doubles are 2^54 and 2^54 + 4
        // 2^54+1 is less than halfway between, so HALF_DOWN and HALF_UP will both go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 54) + 1))
            .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN)
            .setExpectation(Math.nextUp(twoToThe54), CEILING, UP)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/IntMath.java

         * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of
         * p / q.
         *
         * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise.
         */
        int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1));
        boolean increment;
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(rem == 0);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

                    new File(delegate.getBasedir()),
                    (layout != null) ? layout.getClass().getSimpleName() : "legacy");
    
            /*
             * NOTE: "invoker:install" vs "appassembler:assemble": Both mojos use the artifact installer to put an artifact
             * into a repository. In the first case, the result needs to be a proper local repository that one can use for
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multiset.java

     * #elementSet} contains the distinct elements of the multiset "with duplicates collapsed", and
     * {@link #entrySet} is similar but contains {@link Entry Multiset.Entry} instances, each providing
     * both a distinct element and the count of that element.
     *
     * <p>In addition to these required methods, implementations of {@code Multiset} are expected to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        return Arrays.asList(copy);
      }
    
      private interface IteratorOperation {
        @Nullable Object execute(Iterator<?> iterator);
      }
    
      /**
       * Apply this method to both iterators and return normally only if both produce the same response.
       *
       * @see Stimulus#executeAndCompare(ListIterator, Iterator)
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ContiguousSet.java

      /**
       * Returns the set of values that are contained in both this set and the other.
       *
       * <p>This method should always be used instead of {@link Sets#intersection} for {@link
       * ContiguousSet} instances.
       */
      public abstract ContiguousSet<C> intersection(ContiguousSet<C> other);
    
      /**
       * Returns a range, closed on both ends, whose endpoints are the minimum and maximum values
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RangeSet.java

       * value}, or {@code null} if this range set does not contain {@code value}.
       */
      @CheckForNull
      Range<C> rangeContaining(C value);
    
      /**
       * Returns {@code true} if there exists a non-empty range enclosed by both a member range in this
       * range set and the specified range. This is equivalent to calling {@code
       * subRangeSet(otherRange)} and testing whether the resulting range set is non-empty.
       *
       * @since 20.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        return Arrays.asList(copy);
      }
    
      private interface IteratorOperation {
        @Nullable Object execute(Iterator<?> iterator);
      }
    
      /**
       * Apply this method to both iterators and return normally only if both produce the same response.
       *
       * @see Stimulus#executeAndCompare(ListIterator, Iterator)
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

     * @param <V> Value parameter type
     */
    @ElementTypesAreNonnullByDefault
    final class DirectedGraphConnections<N, V> implements GraphConnections<N, V> {
      /**
       * A wrapper class to indicate a node is both a predecessor and successor while still providing
       * the successor value.
       */
      private static final class PredAndSucc {
        private final Object successorValue;
    
        PredAndSucc(Object successorValue) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          canRemove = false;
          expectedModCount++;
          if (cursor < size()) {
            MoveDesc<E> moved = removeAt(cursor);
            if (moved != null) {
              // Either both are null or neither is, but we check both to satisfy the nullness checker.
              if (forgetMeNot == null || skipMe == null) {
                forgetMeNot = new ArrayDeque<>();
                skipMe = new ArrayList<>(3);
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
Back to top