コード例 #1
0
 /** {@inheritDoc} */
 @Override
 public <GValue> Selection<GItem> findAll(
     final Field<? super GItem, ? extends GValue> field, final GValue value)
     throws NullPointerException {
   if (field == null) throw new NullPointerException("field = null");
   return new FilteredSelection<GItem>(
       Iterables.filteredIterable(
           Filters.navigatedFilter(field, Filters.containsFilter(value)), this._items_));
 }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public final boolean containsAll(final Collection<?> collection) {
   return Iterables.containsAll(this, collection);
 }
コード例 #3
0
 /** {@inheritDoc} */
 @Override
 public final boolean removeAll(final Collection<?> collection) {
   if (this.isEmpty()) return false;
   return Iterables.removeAll((Iterable<?>) this, collection);
 }