Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 258 for equivalent (0.2 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-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        g2.addEdge(N1, N2, E13);
        g2.addEdge(N1, N3, E12);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node/edge sets and node/edge connections are the same, but network properties differ.
      // (In this case the networks are considered equivalent; the property differences are irrelevant.)
      @Test
      public void equivalent_propertiesDiffer() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 5.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
      }
    
      @Test
      public void equivalent_nodeSetsDiffer() {
        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
      public void equivalent_directedVsUndirected() {
        graph.putEdge(N1, N2);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top