Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 120 for filters (0.16 sec)

  1. guava/src/com/google/common/base/Throwables.java

       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
       * Iterables.filter(Throwables.getCausalChain(e), IOException.class));
       * </pre>
       *
       * @param throwable the non-null {@code Throwable} to extract causes from
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

      }
    
      private static Type[] toArray(Collection<Type> types) {
        return types.toArray(new Type[0]);
      }
    
      private static Iterable<Type> filterUpperBounds(Iterable<Type> bounds) {
        return Iterables.filter(bounds, Predicates.not(Predicates.<Type>equalTo(Object.class)));
      }
    
      private static void disallowPrimitiveType(Type[] types, String usedAs) {
        for (Type type : types) {
          if (type instanceof Class) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
       * Iterables.filter(Throwables.getCausalChain(e), IOException.class));
       * </pre>
       *
       * @param throwable the non-null {@code Throwable} to extract causes from
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      `Yes, please do!' pleaded Alice.
    
      `And be quick about it,' added the Hatter, `or you'll be asleep
    again before it's done.'
    
      `Once upon a time there were three little sisters,' the
    Dormouse began in a great hurry; `and their names were Elsie,
    Lacie, and Tillie; and they lived at the bottom of a well--'
    
      `What did they live on?' said Alice, who always took a great
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                    SortedMultiset<E> multiset =
                        (SortedMultiset<E>) delegate.create(allEntries.toArray());
    
                    // call the smallest subMap overload that filters out the extreme
                    // values
                    if (from == Bound.INCLUSIVE) {
                      multiset = multiset.tailMultiset(firstInclusive, BoundType.CLOSED);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                    SortedMultiset<E> multiset =
                        (SortedMultiset<E>) delegate.create(allEntries.toArray());
    
                    // call the smallest subMap overload that filters out the extreme
                    // values
                    if (from == Bound.INCLUSIVE) {
                      multiset = multiset.tailMultiset(firstInclusive, BoundType.CLOSED);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      public void testFilter() {
        FluentIterable<String> filtered =
            FluentIterable.from(asList("foo", "bar")).filter(Predicates.equalTo("foo"));
    
        List<String> expected = Collections.singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
        assertCanIterateAgain(filtered);
        assertEquals("[foo]", filtered.toString());
      }
    
      private static class TypeA {}
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

      }
    
      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

      }
    
      private static final Predicate<Entry<Integer, String>> FILTER_GET_PREDICATE =
          new Predicate<Entry<Integer, String>>() {
            @Override
            public boolean apply(Entry<Integer, String> entry) {
              return !"badvalue".equals(entry.getValue()) && 55556 != entry.getKey();
            }
          };
    
      private static final Predicate<Entry<String, Integer>> FILTER_KEYSET_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesFilterArrayListTest.java

      @Override
      Iterable<Integer> createUnfiltered(Iterable<Integer> contents) {
        return Lists.newArrayList(contents);
      }
    
      @Override
      Iterable<Integer> filter(Iterable<Integer> elements, Predicate<? super Integer> predicate) {
        return Iterables.filter(elements, predicate);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 16 21:55:55 GMT 2022
    - 1.1K bytes
    - Viewed (0)
Back to top