Cast the List's objects as type T
, returning a new List with each data member that was
successfully cast.
Cast the List's objects as type T
, returning a new List with each data member that was
successfully cast. Has the potential to lose data, as any uncastable members are not included in the new
List.
the type to which List members will be cast
a new List containing all the members of this List that were successfully cast
Cast the List's objects as type T
, returning a new List with each data member that was
successfully cast and that satisfied pred
.
Cast the List's objects as type T
, returning a new List 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 List.
the type to which List members will be cast
the function to be satisfied, based on some value of type T
a new List containing all the members of this List 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
(castableList: 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
(castableList: CastableAny).castIf(pred)(arg0)
Wrapper to allow a List to be cast into a new List with objects of type
T
. Attempts to cast each individual member of the given List.