Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for JDK6 (0.03 sec)

  1. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

            // explicit <Entry<K, V>> is required to build with JDK6
            Predicates.<Entry<K, V>>and(
                multimap.entryPredicate(), Maps.<V>valuePredicateOnEntries(Predicates.in(c))));
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
            // explicit <Entry<K, V>> is required to build with JDK6
            Predicates.<Entry<K, V>>and(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class SortedIterablesTest extends TestCase {
      public void testSameComparator() {
        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SortedIterablesTest.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class SortedIterablesTest extends TestCase {
      public void testSameComparator() {
        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return newArrayList(2, 1, 3).iterator();
              }
            };
        assertFailure(tester);
      }
    
      /**
       * This Iterator wraps another iterator and gives it a bug found in JDK6.
       *
       * <p>This bug is this: if you create an iterator from a TreeSet and call next() on that iterator
       * when hasNext() is false, so that next() throws a NoSuchElementException, then subsequent calls
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return newArrayList(2, 1, 3).iterator();
              }
            };
        assertFailure(tester);
      }
    
      /**
       * This Iterator wraps another iterator and gives it a bug found in JDK6.
       *
       * <p>This bug is this: if you create an iterator from a TreeSet and call next() on that iterator
       * when hasNext() is false, so that next() throws a NoSuchElementException, then subsequent calls
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Code using this should be
     * approximately equivalent in behavior to the same code written with try-with-resources.
     *
     * <p>This class is intended to be used in the following pattern:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Closer.java

     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Code using this should be
     * approximately equivalent in behavior to the same code written with try-with-resources.
     *
     * <p>This class is intended to be used in the following pattern:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      private static <E> Iterator<E> asIterator(E... elements) {
        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 {
    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