Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for set$1 (0.06 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testNullTimeUnit() throws Exception {
        future.set(1);
        assertThrows(NullPointerException.class, () -> future.get(0, null));
      }
    
      public void testNegativeTimeout() throws Exception {
        future.set(1);
        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                    exitCode.set(1);
                    latch.countDown();
                });
    
                try {
                    latch.await();
                } catch (final InterruptedException ignore) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupted.", ignore);
                    }
                    exitCode.set(1);
                }
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(list.set(0, true)).isFalse();
        assertThat(list.set(0, false)).isTrue();
        assertThrows(NullPointerException.class, () -> list.set(0, null));
        assertThrows(IndexOutOfBoundsException.class, () -> list.set(1, true));
      }
    
      public void testAsListCanonicalValues() {
        List<Boolean> list = Booleans.asList(true, false);
        assertThat(list.get(0)).isSameInstanceAs(true);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testSkip_structurallyModifiedSkipSome() throws Exception {
        Collection<String> set = new LinkedHashSet<>(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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testSkip_structurallyModifiedSkipSome() throws Exception {
        Collection<String> set = new LinkedHashSet<>(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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        Set<Integer> set2 = newHashSet(2, 3);
        Set<Integer> difference = difference(set1, set2);
        assertThat(difference).containsExactly(1);
        set1.add(0);
        assertThat(difference).containsExactly(0, 1);
        set2.remove(2);
        assertThat(difference).containsExactly(0, 1, 2);
      }
    
      public void testSymmetricDifference_isView() {
        Set<Integer> set1 = newHashSet(1, 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        BiPredicate<ImmutableSet<TypeWithDuplicates>, ImmutableSet<TypeWithDuplicates>> equivalence =
            (set1, set2) -> {
              if (!set1.equals(set2)) {
                return false;
              }
              for (int i = 0; i < set1.size(); i++) {
                if (!set1.asList().get(i).fullEquals(set2.asList().get(i))) {
                  return false;
                }
              }
              return true;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top