class WithFilter extends collection.WithFilter[A, CC]
A template trait that contains just the map
, flatMap
, foreach
and withFilter
methods
of trait Iterable
.
- Alphabetic
- By Inheritance
- WithFilter
- WithFilter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new WithFilter(p: (A) ⇒ Boolean)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filtered: Filter[A]
- Attributes
- protected[this]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[B](f: (A) ⇒ IterableOnce[B]): CC[B]
Builds a new collection by applying a function to all elements of the
filtered
outer iterable collection containing thisWithFilter
instance that satisfyBuilds a new collection by applying a function to all elements of the
filtered
outer iterable collection containing thisWithFilter
instance that satisfy- B
the element type of the returned collection.
- f
the function to apply to each element.
- returns
a new iterable collection resulting from applying the given collection-valued function
f
to each element of the filtered outer iterable collection and concatenating the results.
- Definition Classes
- WithFilter → WithFilter
-
def
foreach[U](f: (A) ⇒ U): Unit
Applies a function
f
to all elements of thefiltered
outer iterable collection.Applies a function
f
to all elements of thefiltered
outer iterable collection.- U
the type parameter describing the result of function
f
. This result will always be ignored. TypicallyU
isUnit
, but this is not necessary.- f
the function that is applied for its side-effect to every element. The result of function
f
is discarded.
- Definition Classes
- WithFilter → WithFilter
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B](f: (A) ⇒ B): CC[B]
Builds a new collection by applying a function to all elements of the
filtered
outer iterable collection.Builds a new collection by applying a function to all elements of the
filtered
outer iterable collection.- B
the element type of the returned collection.
- f
the function to apply to each element.
- returns
a new iterable collection resulting from applying the given function
f
to each element of the filtered outer iterable collection and collecting the results.
- Definition Classes
- WithFilter → WithFilter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFilter(q: (A) ⇒ Boolean): WithFilter
Further refines the filter for this
filtered
iterable collection.Further refines the filter for this
filtered
iterable collection.- q
the predicate used to test elements.
- returns
an object of class
WithFilter
, which supportsmap
,flatMap
,foreach
, andwithFilter
operations. All these operations apply to those elements of this iterable collection which also satisfy bothp
andq
predicates.
- Definition Classes
- WithFilter → WithFilter