Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for calculated (0.22 sec)

  1. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Traverser.forGraph(createDirectedGraph()).breadthFirst('a'));
      }
    
      /**
       * Checks that the elements of the iterable are calculated on the fly. Concretely, that means that
       * {@link SuccessorsFunction#successors(Object)} can only be called for a subset of all nodes.
       */
      @Test
      public void forGraph_breadthFirstIterable_emptyGraph() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Collections2.java

          this.comparator = comparator;
          this.size = calculateSize(inputList, comparator);
        }
    
        /**
         * The number of permutations with repeated elements is calculated as follows:
         *
         * <ul>
         *   <li>For an empty list, it is 1 (base case).
         *   <li>When r numbers are added to a list of n-r elements, the number of permutations is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/Stats.java

       */
      public double max() {
        checkState(count != 0);
        return max;
      }
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Note:</b> This tests exact equality of the calculated statistics, including the floating
       * point values. Two instances are guaranteed to be considered equal if one is copied from the
       * other using {@code second = new StatsAccumulator().addAll(first).snapshot()}, if both were
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Collections2.java

          this.comparator = comparator;
          this.size = calculateSize(inputList, comparator);
        }
    
        /**
         * The number of permutations with repeated elements is calculated as follows:
         *
         * <ul>
         *   <li>For an empty list, it is 1 (base case).
         *   <li>When r numbers are added to a list of n-r elements, the number of permutations is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      private void addPendingString(StringBuilder builder) {
        // Capture current builder length so it can be truncated if this future ends up completing while
        // the toString is being calculated
        int truncateLength = builder.length();
    
        builder.append("PENDING");
    
        Object localValue = value;
        if (localValue instanceof SetFuture) {
          builder.append(", setFuture=[");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Traverser.forGraph(createDirectedGraph()).breadthFirst('a'));
      }
    
      /**
       * Checks that the elements of the iterable are calculated on the fly. Concretely, that means that
       * {@link SuccessorsFunction#successors(Object)} can only be called for a subset of all nodes.
       */
      @Test
      public void forGraph_breadthFirstIterable_emptyGraph() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Suppliers.java

       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
       * form does not contain the cached value, which will be recalculated when {@code get()} is called
       * on the deserialized instance.
       *
       * <p>When the underlying delegate throws an exception then this memoizing supplier will keep
       * delegating calls until it returns valid data.
    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)
  8. guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_snapshotsIndexes() {
        // This test is the same as testScale_indexes_varargs_compute_doubleCollection except that the
        // array of indexes to be calculated is modified between the calls to indexes and compute: since
        // the contract is that it is snapshotted, this shouldn't make any difference to the result.
        int[] indexes = {0, 10, 5, 1, 8, 10};
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_snapshotsIndexes() {
        // This test is the same as testScale_indexes_varargs_compute_doubleCollection except that the
        // array of indexes to be calculated is modified between the calls to indexes and compute: since
        // the contract is that it is snapshotted, this shouldn't make any difference to the result.
        int[] indexes = {0, 10, 5, 1, 8, 10};
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/LongMath.java

                + Long.numberOfLeadingZeros(b)
                + Long.numberOfLeadingZeros(~b);
        if (leadingZeros > Long.SIZE + 1) {
          return a * b;
        }
        // the return value if we will overflow (which we calculate by overflowing a long :) )
        long limit = Long.MAX_VALUE + ((a ^ b) >>> (Long.SIZE - 1));
        if (leadingZeros < Long.SIZE | (a < 0 & b == Long.MIN_VALUE)) {
          // overflow
          return limit;
        }
    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