Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Equals (0.18 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

            Iterators.removeIf(
                list.iterator(),
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            Iterators.removeIf(
                list.iterator(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        Set<E> delegate() {
          return (Set<E>) super.delegate();
        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o == this) {
            return true;
          }
          synchronized (mutex) {
            return delegate().equals(o);
          }
        }
    
        @Override
        public int hashCode() {
          synchronized (mutex) {
            return delegate().hashCode();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

     * <i>if and only if</i> {@code a.equals(b)}. If this advice is not followed, the resulting map will
     * not correctly obey its specification.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableMap} since 12.0)
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

          }
          return false;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof PowerSet) {
            PowerSet<?> that = (PowerSet<?>) obj;
            return inputSet.keySet().equals(that.inputSet.keySet());
          }
          return super.equals(obj);
        }
    
        @Override
        public int hashCode() {
          /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

       * #newListMultimap}, {@link #newSetMultimap} or {@link #newSortedSetMultimap} instead, to avoid
       * very surprising behavior from {@link Multimap#equals}.
       *
       * <p>The {@code factory}-generated and {@code map} classes determine the multimap iteration
       * order. They also specify the behavior of the {@code equals}, {@code hashCode}, and {@code
       * toString} methods for the multimap and its returned views. However, the multimap's {@code get}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedMap.java

     * <i>if and only if</i> {@code a.equals(b)}. If this advice is not followed, the resulting map will
     * not correctly obey its specification.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableMap} since 12.0)
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

            Iterators.removeIf(
                list.iterator(),
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            Iterators.removeIf(
                list.iterator(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        assertTrue(actual.contains(list(2, 3)));
        assertTrue(actual.contains(list(2, 4)));
        assertFalse(actual.contains(list(3, 1)));
      }
    
      public void testCartesianProduct_equals() {
        Set<List<Integer>> cartesian = Sets.cartesianProduct(set(1, 2), set(3, 4));
        ImmutableSet<List<Integer>> equivalent =
            ImmutableSet.of(ImmutableList.of(1, 3), ImmutableList.of(1, 4), list(2, 3), list(2, 4));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTest.java

        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
        mod.put(4, "four");
        assertEquals(true, unmod.get(4).equals("four"));
        assertEquals(true, unmod.inverse().get("four").equals(4));
    
        /* UnsupportedOperationException on direct modifications. */
        try {
          unmod.put(4, "four");
          fail("UnsupportedOperationException expected");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
        mod.put(4, "four");
        assertEquals(true, unmod.get(4).equals("four"));
        assertEquals(true, unmod.inverse().get("four").equals(4));
    
        /* UnsupportedOperationException on direct modifications. */
        try {
          unmod.put(4, "four");
          fail("UnsupportedOperationException expected");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
Back to top