object NamedPF
- Alphabetic
- By Inheritance
- NamedPF
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
apply[A, B](value: A, lst: Seq[PartialFunction[A, B]]): B
Find the first PartialFunction in the specified sequence that is defined at the specified value, apply it to that value and return the result or throw a MatchError on failure to find such a function.
Find the first PartialFunction in the specified sequence that is defined at the specified value, apply it to that value and return the result or throw a MatchError on failure to find such a function.
- value
the value to use to test each PartialFunction
- lst
the sequence to search for a PartialFunction defined at
value
- returns
the result of applying any such PartialFunction to the specified value.
- Exceptions thrown
MatchError
on failure to find such a PartialFunction
-
def
apply[A, B](name: String)(f: PartialFunction[A, B]): NamedPartialFunction[A, B]
Curried constructor for NamedPF
-
def
applyBox[A, B](value: A, lst: Seq[PartialFunction[A, B]]): Box[B]
Find the first PartialFunction in the specified sequence that is defined at the specified value, apply it to that value and return the result in a Full Box if found; return Empty otherwise
Find the first PartialFunction in the specified sequence that is defined at the specified value, apply it to that value and return the result in a Full Box if found; return Empty otherwise
- value
the value to use to test each PartialFunction
- lst
the sequence to search for a PartialFunction defined at
value
- returns
a Full Box containing the result of applying the first PartialFunction which is defined at the specified value to that value, or Empty if no such PartialFunction is found
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find[A, B](value: A, lst: Seq[PartialFunction[A, B]]): Box[PartialFunction[A, B]]
Find the first partial function in the specified sequence that is defined at the given value.
Find the first partial function in the specified sequence that is defined at the given value.
- value
the value to use to test each PartialFunction
- lst
the sequence to search for a PartialFunction defined at
value
- returns
a Full Box containing the PartialFunction if found, or Empty othewise.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isDefinedAt[A, B](value: A, lst: Seq[PartialFunction[A, B]]): Boolean
Determine whether any PartialFunction in the specified sequence is defined at the specified value.
Determine whether any PartialFunction in the specified sequence is defined at the specified value.
- value
the value to use to test each PartialFunction
- lst
the sequence to search for a PartialFunction defined at
value
- returns
whether such a PartialFunction is found
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
- @throws( ... )