net.liftweb.util.NamedPF

object NamedPF

object NamedPF

 extends ScalaObject




Companion: NamedPF

Source: NamedPartialFunction.scala(40)

 Constructors

def this

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
apply.. def apply[A, B](value : A, lst : Seq[PartialFunction[A, 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 [details]
param
lst - the sequence to search for a PartialFunction defined at value
value - the value to use to test each PartialFunction
return
- the result of applying any such PartialFunction to the specified value.
throws
MatchError - on failure to find such a PartialFunction
B
apply.. def apply[A, B](name : String)(f : PartialFunction[A, B])
Curried constructor for NamedPF
NamedPartialFunction[A, B]
applyBox.. def applyBox[A, B](value : A, lst : Seq[PartialFunction[A, 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 [details]
param
lst - the sequence to search for a PartialFunction defined at value
value - the value to use to test each PartialFunction
return
- 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
Box[B]
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
find.. def find[A, B](value : A, lst : Seq[PartialFunction[A, B]])
Find the first partial function in the specified sequence that is defined at the given value [details]
param
lst - the sequence to search for a PartialFunction defined at value
value - the value to use to test each PartialFunction
return
- a Full Box containing the PartialFunction if found, or Empty othewise.
Box[PartialFunction[A, B]]
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isDefinedAt.. def isDefinedAt[A, B](value : A, lst : Seq[PartialFunction[A, B]])
Determine whether any PartialFunction in the specified sequence is defined at the specified value [details]
param
lst - the sequence to search for a PartialFunction defined at value
value - the value to use to test each PartialFunction
return
- whether such a PartialFunction is found
Boolean
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.