Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for computed (0.15 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    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)
  2. android/guava/src/com/google/common/hash/Hashing.java

       * the information of these hash codes in an ordered fashion. That is, whenever two equal hash
       * codes are produced by two calls to this method, it is <i>as likely as possible</i> that each
       * was computed from the <i>same</i> input hash codes in the <i>same</i> order.
       *
       * @throws IllegalArgumentException if {@code hashCodes} is empty, or the hash codes do not all
       *     have the same bit length
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testHashCodeForBooleanOperations() {
        Predicate<@Nullable Integer> p1 = Predicates.isNull();
        Predicate<@Nullable Integer> p2 = isOdd();
    
        // Make sure that hash codes are not computed per-instance.
        assertEqualHashCode(Predicates.not(p1), Predicates.not(p1));
    
        assertEqualHashCode(Predicates.and(p1, p2), Predicates.and(p1, p2));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Splitter.java

      }
    
      /**
       * Splits {@code sequence} into string components and makes them available through an {@link
       * Iterator}, which may be lazily evaluated. If you want an eagerly computed {@link List}, use
       * {@link #splitToList(CharSequence)}. Java 8+ users may prefer {@link #splitToStream} instead.
       *
       * @param sequence the sequence of characters to split
    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)
  7. android/guava/src/com/google/common/collect/Multisets.java

          }
        }
      }
    
      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Splitter.java

      }
    
      /**
       * Splits {@code sequence} into string components and makes them available through an {@link
       * Iterator}, which may be lazily evaluated. If you want an eagerly computed {@link List}, use
       * {@link #splitToList(CharSequence)}.
       *
       * @param sequence the sequence of characters to split
       * @return an iteration over the segments split from the parameter
       */
    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)
  10. android/guava/src/com/google/common/math/BigIntegerMath.java

        int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
        ArrayList<BigInteger> bignums = new ArrayList<>(approxSize);
    
        // Start from the pre-computed maximum long factorial.
        int startingNumber = LongMath.factorials.length;
        long product = LongMath.factorials[startingNumber - 1];
        // Strip off 2s from this value.
    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)
Back to top