Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for Dreesen (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NavigableSet;
    import java.util.TreeSet;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests operations on a NavigableSet. Can't be invoked directly; please
     * see {@code NavigableSetTestSuiteBuilder}.
     *
     * @author Jesse Wilson
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return generateTreeSet(freshElement);
      }
    
      @Generates
      static <E extends Comparable<? super E>> TreeSet<E> generateTreeSet(E freshElement) {
        TreeSet<E> set = Sets.newTreeSet();
        set.add(freshElement);
        return set;
      }
    
      @Generates
      static <E extends Comparable<? super E>> ImmutableSortedSet<E> generateImmutableSortedSet(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

      private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) {
        SortedSet<E> set = newTreeSet();
        for (E element : elements) {
          // Explicit null check because TreeSet wrongly accepts add(null) when empty.
          set.add(checkNotNull(element));
        }
        return set;
      }
    
      public static class ContiguousSetGenerator extends AbstractContiguousSetGenerator {
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

        return Helpers.getMethod(CollectionAddTester.class, "testAdd_nullSupported");
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testAdd_nullSupported()} so that tests of
       * {@link java.util.TreeSet} can suppress it with {@code
       * FeatureSpecificTestSuiteBuilder.suppressing()} until <a
       * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045147">Sun bug 5045147</a> is fixed.
       */
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        return asList(elements).iterator();
      }
    
      // In GWT, java.util.TreeSet throws ClassCastException when the comparator
      // throws it, unlike JDK6.  Therefore, we accept ClassCastException as a
      // valid result thrown by java.util.TreeSet#equals.
      private static void assertNotEqualLenient(TreeSet<?> unexpected, SortedSet<?> actual) {
        try {
          assertThat(actual).isNotEqualTo(unexpected);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Warning:</b> by definition, this comparator is not <i>consistent with equals</i> (as
       * defined {@linkplain Comparator here}). Avoid its use in APIs, such as {@link
       * TreeSet#TreeSet(Comparator)}, where such consistency is expected.
       *
       * <p>The returned comparator is serializable.
       *
       * <p><b>Java 8+ users:</b> Use the lambda expression {@code (a, b) -> 0} instead (in certain
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    NavigableSet<String> innerSet = new TreeSet<>();
                    Collections.addAll(innerSet, elements);
                    return Collections.checkedNavigableSet(innerSet, String.class);
                  }
                })
            .named("checkedNavigableSet/TreeSet, natural")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          new RegularImmutableSortedSet<Object>(
              new TreeSet<Object>((Comparator<Object>) NATURAL_ORDER), false);
    
      static <E> ImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        checkNotNull(comparator);
        if (NATURAL_ORDER.equals(comparator)) {
          return of();
        } else {
          return new RegularImmutableSortedSet<E>(new TreeSet<E>(comparator), false);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SetsTest.java

        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewTreeSetEmpty() {
        TreeSet<Integer> set = Sets.newTreeSet();
        verifySortedSetContents(set, EMPTY_COLLECTION, null);
      }
    
      public void testNewTreeSetEmptyDerived() {
        TreeSet<Derived> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  10. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NavigableSet;
    import java.util.TreeSet;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests operations on a NavigableSet. Can't be invoked directly; please
     * see {@code NavigableSetTestSuiteBuilder}.
     *
     * @author Jesse Wilson
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
Back to top