Cast the Traversable's objects as type T
, returning a new Traversable with each data member that was
successfully cast.
Cast the Traversable's objects as type T
, returning a new Traversable with each data member that was
successfully cast. Has the potential to lose data, as any uncastable members are not included in the new
Traverable.
the type to which Traversable members will be cast
a new Traversable containing all the members of this Traversable that were successfully cast
Cast the Traversable's objects as type T
, returning a new Traversable with each data member that was
successfully cast and that satisfied pred
.
Cast the Traversable's objects as type T
, returning a new Traversable with each data member that was
successfully cast and that satisfied pred
. Has the potential to lose data, as any uncastable members are
not included in the new Traversable.
the type to which Traversable members will be cast
the function to be satisfied, based on some value of type T
a new Traversable containing all the members of this Traversable that were successfully cast and
that satisfied pred
Cast the wrapped object as type T
, optionally returning the newly cast object if the cast was successful
Cast the wrapped object as type T
, optionally returning the newly cast object if the cast was successful
the type to which this wrapped object will be cast
the ClassTag of type T
optionally, the newly cast object, or None if the cast was unsuccessful
(castableTraversable: CastableAny).cast(target)
Cast the wrapped object as type T
and optionally return it if it satisfies some predicate pred
Cast the wrapped object as type T
and optionally return it if it satisfies some predicate pred
the type to which this wrapped object will be cast
the function to be satisfied, based on some value of type T
optionally, the newly cast object, or None if the cast was unsuccessful or pred
was not satisfied
(castableTraversable: CastableAny).castIf(pred)(arg0)
Wrapper to allow a Traversable to be cast into a new Traversable with objects of type
T
. Attempts to cast each individual member of the given traversable.