Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Filler (0.19 sec)

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

            assertFalse(filter(createUnfiltered(contents), EVEN).contains(new Object()));
          }
        }
    
        public void testAddAllFailsAtomically() {
          ImmutableList<Integer> toAdd = ImmutableList.of(2, 4, 3);
          for (List<Integer> contents : SAMPLE_INPUTS) {
            C filtered = filter(createUnfiltered(contents), EVEN);
            C filteredToModify = filter(createUnfiltered(contents), EVEN);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       * it does.
       *
       * <p>The caller is responsible for ensuring that the returned stream is closed. For example:
       *
       * <pre>{@code
       * try (Stream<String> lines = source.lines()) {
       *   lines.map(...)
       *      .filter(...)
       *      .forEach(...);
       * }
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

            @SuppressWarnings("unchecked")
            Entry<String, Integer> entry = (Entry<String, Integer>) o;
            multimap.put(entry.getKey(), entry.getValue());
          }
          return filter(multimap);
        }
    
        abstract ListMultimap<String, Integer> filter(ListMultimap<String, Integer> multimap);
    
        @Override
        public Collection<Integer> createCollection(Iterable<? extends Integer> values) {
          return Lists.newArrayList(values);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

            @SuppressWarnings("unchecked")
            Entry<String, Integer> entry = (Entry<String, Integer>) o;
            multimap.put(entry.getKey(), entry.getValue());
          }
          return filter(multimap);
        }
    
        abstract ListMultimap<String, Integer> filter(ListMultimap<String, Integer> multimap);
    
        @Override
        public Collection<Integer> createCollection(Iterable<? extends Integer> values) {
          return Lists.newArrayList(values);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

          return emptySet();
        } else {
          return emptyList();
        }
      }
    
      @Override
      public void clear() {
        keySet().clear();
      }
    
      @Override
      Set<K> createKeySet() {
        return Sets.filter(unfiltered.keySet(), keyPredicate);
      }
    
      @Override
      public Collection<V> get(@ParametricNullness K key) {
        if (keyPredicate.apply(key)) {
          return unfiltered.get(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

                    unfiltered.add("zzz");
                    unfiltered.add("abc");
                    return Sets.filter(
                        Sets.filter(unfiltered, Collections2Test.LENGTH_1),
                        Collections2Test.NOT_YYY_ZZZ);
                  }
                })
            .named("Sets.filter, filtered input")
            .withFeatures(
                CollectionFeature.SUPPORTS_ADD,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharSink.java

     *
     * <p>{@code CharSink} provides two kinds of methods:
     *
     * <ul>
     *   <li><b>Methods that return a writer:</b> These methods should return a <i>new</i>, independent
     *       instance each time they are called. The caller is responsible for ensuring that the
     *       returned writer is closed.
     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      interface X {}
    
      interface Y {}
    
      static class A implements X, Y {}
    
      static class B implements X, Y {}
    
      /**
       * This test passes if the {@code concat(…).filter(…).filter(…)} statement at the end compiles.
       * That statement compiles only if {@link FluentIterable#concat concat(aIterable, bIterable)}
       * returns a {@link FluentIterable} of elements of an anonymous type whose supertypes are the <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ObjectArrays.java

       * elements than the collection), the element in the array immediately following the end of the
       * collection is set to {@code null}. This is useful in determining the length of the collection
       * <i>only</i> if the caller knows that the collection does not contain any null elements.
       *
       * <p>This method returns the elements in the order they are returned by the collection's
       * iterator.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top