The Box class is a container which is able to declare if it is Full (containing a single non-null value) or EmptyBox.
The bridge from Java to Scala Box
Sometimes it's convenient to access either a Box[T] or a T.
Sometimes it's convenient to access either a Box[T] or a T. If you specify BoxOrRaw[T], the either a T or a Box[T] can be passed and the "right thing" will happen
The Box companion object provides methods to create a Box from:
The Box companion object provides methods to create a Box from:
It also provides implicit methods to transform Option to Box, Box to Iterable, and Box to Option
A trait that a class can mix into itself to convert itself into a Box
The Boxed up BoxOrRaw
This trait defines the principle contract for function objects that wrap the processing of HTTP requests by Lift while utilizing the preestablished request-local scope.
The case class that holds the NodeSeq constant.
The case class that holds the String constant.
The EmptyBox is a Box containing no value.
Encoding for "A is not a subtype of B"
A Failure is an EmptyBox with an additional failure message explaining the reason for its being empty.
A Failure is an EmptyBox with an additional failure message explaining the reason for its being empty. It can also optionally provide an exception or a chain of causes represented as a list of other Failure objects
Full is a Box containing a value.
Bridge from Java functions to Scala functions
Generic Actor interface.
Generic Actor interface. Can receive any type of message. Can return (via !! and !?) messages of type R.
Implements an LRU Hashmap
Mixin with a nested lazy Logger
Mixin with a nested lazy Logger
Useful for mixin to objects that are created before Lift has booted (and thus Logging is not yet configured)
Helper class to provide an easy way for converting Lists of Boxes[T] into a Box of List[T].
Mixin with a nested Logger
Logger is a thin wrapper on top of an SLF4J Logger
Logger is a thin wrapper on top of an SLF4J Logger
The main purpose is to utilize Scala features for logging
Note that the dynamic type of "this" is used when this trait is mixed in.
This may not always be what you want. If you need the static type, you have to declare your own Logger:
class MyClass { val logger = Logger(classOf[MyClass]) }
Sometimes you want a function that returns a NodeSeq as a parameter, but many times, you'll just want to pass a NodeSeq constant.
Sometimes you want a function that returns a NodeSeq as a parameter, but many times, you'll just want to pass a NodeSeq constant. In those cases, this trait and it's implicit conversions come in really handy. Basically, a NodeSeq constant or a NodeSeq function can be passed and either will be implicitly converted into a NodeSeqFunc.
A ParamFailure is a Failure with an additional typesafe parameter that can allow an application to store other information related to the failure.
The raw version of BoxOrRaw
The case class that holds a NodeSeq function.
The case class that holds a String function.
The simple definition of an actor.
The simple definition of an actor. Something that can receive a message of type T.
An immutable singly linked list that uses the Scala List class as backing store, but is Java-friendly.
An immutable singly linked list that uses the Scala List class as backing store, but is Java-friendly.
An Actor that can receive a message of any type
Generic Actor interface.
Generic Actor interface. Can receive any type of message. Can return (via !! and !?) messages of any type.
Sometimes you want a function that returns a String as a parameter, but many times, you'll just want to pass a String constant.
Sometimes you want a function that returns a String as a parameter, but many times, you'll just want to pass a String constant. In those cases, this trait and it's implicit conversions come in really handy. Basically, a String constant or a String function can be passed and either will be implicitly converted into a StringFunc.
A helpful trait that will accept either a String or a NodeSeq via an implicit conversion.
A helpful trait that will accept either a String or a NodeSeq via an implicit conversion. So, all you need to do is put in a String or a NodeSeq and the right thing will happen.
An Actor that can receive messsages of type T and return responses of type R.
The Box companion object provides methods to create a Box from:
The Box companion object provides methods to create a Box from:
It also provides implicit methods to transform Option to Box, Box to Iterable, and Box to Option
The companion object that has helpful conversions
Via an HList containing a Collection of Box[things], either generate an HList of the things or a List[Failure]
Singleton object representing an Empty Box
The companion object to <:!<.
The companion object to <:!<. This allows one of specify that a type is not a subtype of another type
Companion object used to simplify the creation of a simple Failure.
Support for heterogenious lists, aka HLists
Support for heterogenious lists, aka HLists
Configuration helpers for the log4j logging backend
Configuration helpers for the Logback logging backend
The Mapped Diagnostics Context can hold values per thread and output them with each logged output.
The Mapped Diagnostics Context can hold values per thread and output them with each logged output.
The logging backend needs to be configured to log these values
The companion object to NodeSeqFunc with helpful implicit conversions
The companion object to StringFunc with helpful implicit conversions
The companion object that has helpful implicit conversions from String and NodeSeq
Safely parse a String into a Double, avoiding the JVM bug that causes the thread to hang if the String is 2.
Safely parse a String into a Double, avoiding the JVM bug that causes the thread to hang if the String is 2.2250738585072012e-308
This wonkaround is not recommended anymore. Instead consider using a newer version of JVM which has the necessary fix.
(Since version 2.5) Use a newer or patched JVM instead.
http://blogs.oracle.com/security/entry/security_alert_for_cve-2010-44
The Box class is a container which is able to declare if it is Full (containing a single non-null value) or EmptyBox. An EmptyBox, or empty, can be the Empty singleton, Failure or ParamFailure. Failure and ParamFailure contain information about why the Box is empty including exception information, chained Failures and a String. It serves a similar purpose to the Option class from Scala standard library but adds several features:
Full(1).run("zero") { (x: String, y: Int) => y.toString }Full(1) $ { x: Box[Int] => println(x openOr 0) }