Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for set$1 (0.02 sec)

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

        checkHashCode(cartesianProduct(set(num), set(1)));
        checkHashCode(cartesianProduct(set(1), set(2, num)));
        checkHashCode(cartesianProduct(set(1, num), set(2, num - 1)));
        checkHashCode(cartesianProduct(set(1, num), set(2, num - 1), set(3, num + 1)));
    
        // a bigger one
        checkHashCode(
            cartesianProduct(set(1, num, num + 1), set(2), set(3, num + 2), set(4, 5, 6, 7, 8)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

                return scope.id == system.id;
            }
    
            for (ArtifactScopeEnum[][] set : COMPLIANCY_SETS) {
                if (id == set[0][0].id) {
                    for (ArtifactScopeEnum ase : set[1]) {
                        if (s.id == ase.id) {
                            return true;
                        }
                    }
                    break;
                }
            }
            return false;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooLow() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().set(-1, e3()));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooHigh() {
        int index = getNumElements();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooLow() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().set(-1, e3()));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooHigh() {
        int index = getNumElements();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> expected = copyToList(createSamplesArray());
        expected.set(1, e3());
        expectContents(expected);
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_originalListSetAffectsSubListLargeList() {
        List<E> subList = getList().subList(1, 3);
        getList().set(1, e3());
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> expected = copyToList(createSamplesArray());
        expected.set(1, e3());
        expectContents(expected);
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_originalListSetAffectsSubListLargeList() {
        List<E> subList = getList().subList(1, 3);
        getList().set(1, e3());
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertFalse(tailIterator.hasNext());
      }
    
      public void testSkip_structurallyModifiedSkipSome() throws Exception {
        Collection<String> set = newLinkedHashSet(asList("a", "b", "c"));
        Iterable<String> tail = skip(set, 1);
        set.remove("b");
        set.addAll(newArrayList("A", "B", "C"));
        assertThat(tail).containsExactly("c", "A", "B", "C").inOrder();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

        try {
          iterator.add("1");
          fail("transformed list iterator is addable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
        try {
          iterator.set("1");
          fail("transformed list iterator is settable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
      }
    
      public void testTransformIteratorRandomAccess() {
    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

        try {
          iterator.add("1");
          fail("transformed list iterator is addable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
        try {
          iterator.set("1");
          fail("transformed list iterator is settable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
      }
    
      public void testTransformIteratorRandomAccess() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

            toImmutableSortedSet(String.CASE_INSENSITIVE_ORDER);
        BiPredicate<ImmutableSortedSet<String>, ImmutableSortedSet<String>> equivalence =
            (set1, set2) ->
                set1.equals(set2)
                    && set1.asList().equals(set2.asList())
                    && set1.comparator().equals(set2.comparator());
        ImmutableSortedSet<String> expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top