Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for elementsEqual (0.07 sec)

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

        // null versus non-null.
        a = Arrays.<@Nullable Integer>asList(4, 8, 15, null, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a.iterator(), b.iterator()));
        assertFalse(elementsEqual(b.iterator(), a.iterator()));
    
        // Different lengths.
        a = asList(4, 8, 15, 16, 23);
        b = asList(4, 8, 15, 16, 23, 42);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

            ImmutableSortedSet.copyOf(LegacyComparable.VALUES_BACKWARD);
        assertTrue(elementsEqual(LegacyComparable.VALUES_FORWARD, set));
      }
    
      public void testLegacyComparable_copyOf_iterator() {
        ImmutableSortedSet<LegacyComparable> set =
            ImmutableSortedSet.copyOf(LegacyComparable.VALUES_BACKWARD.iterator());
        assertTrue(elementsEqual(LegacyComparable.VALUES_FORWARD, set));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        // null versus non-null.
        a = Arrays.<@Nullable Integer>asList(4, 8, 15, null, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a.iterator(), b.iterator()));
        assertFalse(elementsEqual(b.iterator(), a.iterator()));
    
        // Different lengths.
        a = asList(4, 8, 15, 16, 23);
        b = asList(4, 8, 15, 16, 23, 42);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        b = asList(4, 8, 15, 16, 23, 42);
        assertTrue(elementsEqual(a, b));
    
        // An element differs.
        a = asList(4, 8, 15, 12, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a, b));
    
        // null versus non-null.
        a = Arrays.<@Nullable Integer>asList(4, 8, 15, null, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a, b));
        assertFalse(elementsEqual(b, a));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Lists.java

    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.CollectPreconditions.checkRemove;
    import static com.google.common.collect.Iterators.elementsEqual;
    import static java.lang.Math.min;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.collect.Lists.cartesianProduct;
    import static com.google.common.collect.Lists.charactersOf;
    import static com.google.common.collect.Lists.computeArrayListCapacity;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ListsTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.collect.Lists.cartesianProduct;
    import static com.google.common.collect.Lists.charactersOf;
    import static com.google.common.collect.Lists.computeArrayListCapacity;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

       * of {@code iterator2}.
       *
       * <p>Note that this will modify the supplied iterators, since they will have been advanced some
       * number of elements forward.
       */
      public static boolean elementsEqual(Iterator<?> iterator1, Iterator<?> iterator2) {
        while (iterator1.hasNext()) {
          if (!iterator2.hasNext()) {
            return false;
          }
          Object o1 = iterator1.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top