Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 230 for equivalent (0.16 sec)

  1. guava-testlib/src/com/google/common/testing/EquivalenceTester.java

           */
          assertTrue(item + " must be inequivalent to null", !equivalence.equivalent(item, null));
          assertTrue("null must be inequivalent to " + item, !equivalence.equivalent(null, item));
          assertTrue(item + " must be equivalent to itself", equivalence.equivalent(item, item));
          assertEquals(
              "the hash of " + item + " must be consistent",
              equivalence.hash(item),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

           */
          assertTrue(item + " must be inequivalent to null", !equivalence.equivalent(item, null));
          assertTrue("null must be inequivalent to " + item, !equivalence.equivalent(null, item));
          assertTrue(item + " must be equivalent to itself", equivalence.equivalent(item, item));
          assertEquals(
              "the hash of " + item + " must be consistent",
              equivalence.hash(item),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hasher.java

      @CanIgnoreReturnValue
      @Override
      Hasher putLong(long l);
    
      /** Equivalent to {@code putInt(Float.floatToRawIntBits(f))}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putFloat(float f);
    
      /** Equivalent to {@code putLong(Double.doubleToRawLongBits(d))}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putDouble(double d);
    
      /** Equivalent to {@code putByte(b ? (byte) 1 : (byte) 0)}. */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

      /**
       * Determines if the given iterable contains no elements.
       *
       * <p>There is no precise {@link Iterator} equivalent to this method, since one can only ask an
       * iterator whether it has any elements <i>remaining</i> (which one does using {@link
       * Iterator#hasNext}).
       *
       * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()}
       *
       * @return {@code true} if the iterable contains no elements
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RangeSet.java

       */
      @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
       */
      boolean intersects(Range<C> otherRange);
    
      /**
    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)
  6. guava-testlib/src/com/google/common/testing/RelationshipTester.java

       */
      private final Equivalence<? super T> equivalence;
    
      private final String relationshipName;
      private final String hashName;
      private final ItemReporter itemReporter;
      private final List<ImmutableList<T>> groups = Lists.newArrayList();
    
      RelationshipTester(
          Equivalence<? super T> equivalence,
          String relationshipName,
          String hashName,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by their natural ordering.
       * When multiple elements are equivalent according to {@link Comparable#compareTo}, only the first
       * one specified is included.
       *
       * @throws NullPointerException if any element is null
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
     * method equivalent to {@link java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}. If
     * the {@link #callAndAssertWaits} method is ever called in a test, the lock-like object must have a
     * method equivalent to {@link
     * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Optional.java

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's
       * {@code Optional.ofNullable}.
       */
      public static <T> Optional<T> fromNullable(@CheckForNull T nullableReference) {
        return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference);
      }
    
      /**
       * Returns the equivalent {@code com.google.common.base.Optional} value to the given {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       *     permits become available per second
       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero
       */
      // TODO(user): "This is equivalent to
      // {@code createWithCapacity(permitsPerSecond, 1, TimeUnit.SECONDS)}".
      public static RateLimiter create(double permitsPerSecond) {
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
Back to top