Home
last modified time | relevance | path

Searched refs:unfiltered (Results 1 – 25 of 39) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java44 Multimap<String, Integer> unfiltered = HashMultimap.create(); in create() local
45 unfiltered.put("foo", 55556); in create()
46 unfiltered.put("badkey", 1); in create()
47 return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE); in create()
58 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterKeys() local
59 unfiltered.put("foo", 55556); in testFilterKeys()
60 unfiltered.put("badkey", 1); in testFilterKeys()
61 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); in testFilterKeys()
74 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterValues() local
75 unfiltered.put("foo", 55556); in testFilterValues()
[all …]
DFilteredCollectionsTest.java76 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved() local
77 C filtered = filter(unfiltered, EVEN); in testIterationOrderPreserved()
80 for (Integer i : unfiltered) { in testIterationOrderPreserved()
96 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd() local
97 C filterThenAdd = filter(unfiltered, EVEN); in testReadsThroughAdd()
98 unfiltered.add(4); in testReadsThroughAdd()
166 C unfiltered = createUnfiltered(contents); in testAddToFilterFiltered() local
167 C filtered1 = filter(unfiltered, EVEN); in testAddToFilterFiltered()
186 C unfiltered = createUnfiltered(contents); in testClearFilterFiltered() local
187 C filtered1 = filter(unfiltered, EVEN); in testClearFilterFiltered()
[all …]
DCollections2Test.java93 List<String> unfiltered = newArrayList(); in testsForFilter()
94 unfiltered.add("yyy"); in testsForFilter()
95 Collections.addAll(unfiltered, elements); in testsForFilter()
96 unfiltered.add("zzz"); in testsForFilter()
97 return Collections2.filter(unfiltered, NOT_YYY_ZZZ); in testsForFilter()
115 List<String> unfiltered = newArrayList();
116 Collections.addAll(unfiltered, elements);
117 return Collections2.filter(unfiltered, NOT_YYY_ZZZ);
135 List<String> unfiltered = newLinkedList();
136 unfiltered.add("yyy");
[all …]
DMapsTest.java1349 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local
1350 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut()
1362 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local
1363 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll()
1377 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local
1378 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges()
1379 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges()
1380 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges()
1381 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges()
1382 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges()
[all …]
DMultimapsFilterEntriesAsMapTest.java46 Multimap<String, Integer> unfiltered = HashMultimap.create(); in createMultimap() local
47 unfiltered.put("zero", 55556); in createMultimap()
48 unfiltered.put("one", 55556); in createMultimap()
49 unfiltered.put("badkey", 1); in createMultimap()
50 return Multimaps.filterEntries(unfiltered, PREDICATE); in createMultimap()
DSetsTest.java213 Set<String> unfiltered = Sets.newLinkedHashSet(); in testsForFilter()
214 unfiltered.add("yyy"); in testsForFilter()
215 Collections.addAll(unfiltered, elements); in testsForFilter()
216 unfiltered.add("zzz"); in testsForFilter()
217 return Sets.filter(unfiltered, Collections2Test.NOT_YYY_ZZZ); in testsForFilter()
235 Set<String> unfiltered = Sets.newLinkedHashSet();
236 unfiltered.add("yyy");
237 unfiltered.addAll(ImmutableList.copyOf(elements));
238 unfiltered.add("zzz");
239 return Sets.filter(unfiltered, Collections2Test.LENGTH_1);
[all …]
/external/guava/guava/src/com/google/common/collect/
DFilteredKeyMultimap.java40 final Multimap<K, V> unfiltered; field in FilteredKeyMultimap
43 FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { in FilteredKeyMultimap() argument
44 this.unfiltered = checkNotNull(unfiltered); in FilteredKeyMultimap()
49 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredKeyMultimap
50 return unfiltered; in unfiltered()
69 if (unfiltered.containsKey(key)) { in containsKey()
79 return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection(); in removeAll()
83 if (unfiltered instanceof SetMultimap) { in unmodifiableEmptyCollection()
97 return Sets.filter(unfiltered.keySet(), keyPredicate); in createKeySet()
103 return unfiltered.get(key); in get()
[all …]
DMaps.java2119 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2120 if (unfiltered instanceof SortedMap) {
2121 return filterKeys((SortedMap<K, V>) unfiltered, keyPredicate);
2122 } else if (unfiltered instanceof BiMap) {
2123 return filterKeys((BiMap<K, V>) unfiltered, keyPredicate);
2127 return (unfiltered instanceof AbstractFilteredMap)
2128 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate)
2130 checkNotNull(unfiltered), keyPredicate, entryPredicate);
2164 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
2167 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
[all …]
DSets.java746 Set<E> unfiltered, Predicate<? super E> predicate) {
747 if (unfiltered instanceof SortedSet) {
748 return filter((SortedSet<E>) unfiltered, predicate);
750 if (unfiltered instanceof FilteredSet) {
753 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
757 (Set<E>) filtered.unfiltered, combinedPredicate);
761 checkNotNull(unfiltered), checkNotNull(predicate));
766 FilteredSet(Set<E> unfiltered, Predicate<? super E> predicate) {
767 super(unfiltered, predicate);
809 SortedSet<E> unfiltered, Predicate<? super E> predicate) {
[all …]
DFilteredEntryMultimap.java47 final Multimap<K, V> unfiltered; field in FilteredEntryMultimap
50 FilteredEntryMultimap(Multimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntryMultimap() argument
51 this.unfiltered = checkNotNull(unfiltered); in FilteredEntryMultimap()
56 public Multimap<K, V> unfiltered() { in unfiltered() method in FilteredEntryMultimap
57 return unfiltered; in unfiltered()
109 return (unfiltered instanceof SetMultimap) in unmodifiableEmptyCollection()
121 return filterCollection(unfiltered.get(key), new ValuePredicate(key)); in get()
126 return filterCollection(unfiltered.entries(), predicate); in createEntries()
150 Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator(); in removeEntriesIf()
181 Collection<V> result = unfiltered.asMap().get(key); in get()
[all …]
DCollections2.java90 Collection<E> unfiltered, Predicate<? super E> predicate) { in filter() argument
91 if (unfiltered instanceof FilteredCollection) { in filter()
94 return ((FilteredCollection<E>) unfiltered).createCombined(predicate); in filter()
98 checkNotNull(unfiltered), checkNotNull(predicate)); in filter()
135 final Collection<E> unfiltered; field in Collections2.FilteredCollection
138 FilteredCollection(Collection<E> unfiltered, in FilteredCollection() argument
140 this.unfiltered = unfiltered; in FilteredCollection()
145 return new FilteredCollection<E>(unfiltered, in createCombined()
153 return unfiltered.add(element); in add()
161 return unfiltered.addAll(collection); in addAll()
[all …]
DMultimaps.java1772 Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
1773 if (unfiltered instanceof SetMultimap) {
1774 return filterKeys((SetMultimap<K, V>) unfiltered, keyPredicate);
1775 } else if (unfiltered instanceof ListMultimap) {
1776 return filterKeys((ListMultimap<K, V>) unfiltered, keyPredicate);
1777 } else if (unfiltered instanceof FilteredKeyMultimap) {
1778 FilteredKeyMultimap<K, V> prev = (FilteredKeyMultimap<K, V>) unfiltered;
1779 return new FilteredKeyMultimap<K, V>(prev.unfiltered,
1781 } else if (unfiltered instanceof FilteredMultimap) {
1782 FilteredMultimap<K, V> prev = (FilteredMultimap<K, V>) unfiltered;
[all …]
DFilteredEntrySetMultimap.java34 FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { in FilteredEntrySetMultimap() argument
35 super(unfiltered, predicate); in FilteredEntrySetMultimap()
39 public SetMultimap<K, V> unfiltered() { in unfiltered() method in FilteredEntrySetMultimap
40 return (SetMultimap<K, V>) unfiltered; in unfiltered()
60 return Sets.filter(unfiltered().entries(), entryPredicate()); in createEntries()
DFilteredKeyListMultimap.java34 FilteredKeyListMultimap(ListMultimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { in FilteredKeyListMultimap() argument
35 super(unfiltered, keyPredicate); in FilteredKeyListMultimap()
39 public ListMultimap<K, V> unfiltered() { in unfiltered() method in FilteredKeyListMultimap
40 return (ListMultimap<K, V>) super.unfiltered(); in unfiltered()
DFilteredKeySetMultimap.java36 FilteredKeySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { in FilteredKeySetMultimap() argument
37 super(unfiltered, keyPredicate); in FilteredKeySetMultimap()
41 public SetMultimap<K, V> unfiltered() { in unfiltered() method in FilteredKeySetMultimap
42 return (SetMultimap<K, V>) unfiltered; in unfiltered()
DMultisets.java266 public static <E> Multiset<E> filter(Multiset<E> unfiltered, Predicate<? super E> predicate) { in filter() argument
267 if (unfiltered instanceof FilteredMultiset) { in filter()
270 FilteredMultiset<E> filtered = (FilteredMultiset<E>) unfiltered; in filter()
273 return new FilteredMultiset<E>(filtered.unfiltered, combinedPredicate); in filter()
275 return new FilteredMultiset<E>(unfiltered, predicate); in filter()
279 final Multiset<E> unfiltered; field in Multisets.FilteredMultiset
282 FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate) { in FilteredMultiset() argument
283 this.unfiltered = checkNotNull(unfiltered); in FilteredMultiset()
289 return Iterators.filter(unfiltered.iterator(), predicate); in iterator()
294 return Sets.filter(unfiltered.elementSet(), predicate); in createElementSet()
[all …]
DFilteredMultimapValues.java63 for (Iterator<Entry<K, V>> unfilteredItr = multimap.unfiltered().entries().iterator(); in remove()
76 return Iterables.removeIf(multimap.unfiltered().entries(), in removeAll()
84 return Iterables.removeIf(multimap.unfiltered().entries(), in retainAll()
DIterables.java583 final Iterable<T> unfiltered, final Predicate<? super T> predicate) {
584 checkNotNull(unfiltered);
589 return Iterators.filter(unfiltered.iterator(), predicate);
607 final Iterable<?> unfiltered, final Class<T> type) {
608 checkNotNull(unfiltered);
613 return Iterators.filter(unfiltered.iterator(), type);
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DSimpleInputStream.java25 private int unfiltered = 0; field in SimpleInputStream
83 if (pos + filtered + unfiltered == FILTER_BUF_SIZE) { in read()
85 filtered + unfiltered); in read()
95 int inSize = FILTER_BUF_SIZE - (pos + filtered + unfiltered); in read()
96 inSize = in.read(filterBuf, pos + filtered + unfiltered, in read()
103 filtered = unfiltered; in read()
104 unfiltered = 0; in read()
107 unfiltered += inSize; in read()
108 filtered = simpleFilter.code(filterBuf, pos, unfiltered); in read()
109 assert filtered <= unfiltered; in read()
[all …]
DSimpleOutputStream.java23 private int unfiltered = 0; field in SimpleOutputStream
60 int copySize = Math.min(len, FILTER_BUF_SIZE - (pos + unfiltered)); in write()
61 System.arraycopy(buf, off, filterBuf, pos + unfiltered, copySize); in write()
64 unfiltered += copySize; in write()
67 int filtered = simpleFilter.code(filterBuf, pos, unfiltered); in write()
68 assert filtered <= unfiltered; in write()
69 unfiltered -= filtered; in write()
84 if (pos + unfiltered == FILTER_BUF_SIZE) { in write()
85 System.arraycopy(filterBuf, pos, filterBuf, 0, unfiltered); in write()
98 out.write(filterBuf, pos, unfiltered); in writePending()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapsTest.java1041 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPut() local
1042 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPut()
1054 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysIllegalPutAll() local
1055 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysIllegalPutAll()
1069 Map<String, Integer> unfiltered = createUnfiltered(); in testFilteredKeysFilteredReflectsBackingChanges() local
1070 Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); in testFilteredKeysFilteredReflectsBackingChanges()
1071 unfiltered.put("two", 2); in testFilteredKeysFilteredReflectsBackingChanges()
1072 unfiltered.put("three", 3); in testFilteredKeysFilteredReflectsBackingChanges()
1073 unfiltered.put("four", 4); in testFilteredKeysFilteredReflectsBackingChanges()
1074 assertEquals(ImmutableMap.of("two", 2, "three", 3, "four", 4), unfiltered); in testFilteredKeysFilteredReflectsBackingChanges()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMaps.java1702 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
1703 if (unfiltered instanceof SortedMap) {
1704 return filterKeys((SortedMap<K, V>) unfiltered, keyPredicate);
1705 } else if (unfiltered instanceof BiMap) {
1706 return filterKeys((BiMap<K, V>) unfiltered, keyPredicate);
1710 return (unfiltered instanceof AbstractFilteredMap)
1711 ? filterFiltered((AbstractFilteredMap<K, V>) unfiltered, entryPredicate)
1713 checkNotNull(unfiltered), keyPredicate, entryPredicate);
1747 SortedMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
1750 return filterEntries(unfiltered, Maps.<K>keyPredicateOnEntries(keyPredicate));
[all …]
DMultimaps.java1683 Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
1684 if (unfiltered instanceof SetMultimap) {
1685 return filterKeys((SetMultimap<K, V>) unfiltered, keyPredicate);
1686 } else if (unfiltered instanceof ListMultimap) {
1687 return filterKeys((ListMultimap<K, V>) unfiltered, keyPredicate);
1688 } else if (unfiltered instanceof FilteredKeyMultimap) {
1689 FilteredKeyMultimap<K, V> prev = (FilteredKeyMultimap<K, V>) unfiltered;
1690 return new FilteredKeyMultimap<K, V>(prev.unfiltered,
1692 } else if (unfiltered instanceof FilteredMultimap) {
1693 FilteredMultimap<K, V> prev = (FilteredMultimap<K, V>) unfiltered;
[all …]
DSets.java710 Set<E> unfiltered, Predicate<? super E> predicate) {
711 if (unfiltered instanceof SortedSet) {
712 return filter((SortedSet<E>) unfiltered, predicate);
714 if (unfiltered instanceof FilteredSet) {
717 FilteredSet<E> filtered = (FilteredSet<E>) unfiltered;
721 (Set<E>) filtered.unfiltered, combinedPredicate);
725 checkNotNull(unfiltered), checkNotNull(predicate));
730 FilteredSet(Set<E> unfiltered, Predicate<? super E> predicate) {
731 super(unfiltered, predicate);
773 SortedSet<E> unfiltered, Predicate<? super E> predicate) {
[all …]
DPlatform.java135 SortedSet<E> unfiltered, Predicate<? super E> predicate) { in setsFilterSortedSet() argument
136 return Sets.filterSortedIgnoreNavigable(unfiltered, predicate); in setsFilterSortedSet()
140 SortedMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> predicate) { in mapsFilterSortedMap() argument
141 return Maps.filterSortedIgnoreNavigable(unfiltered, predicate); in mapsFilterSortedMap()

12