package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait Inflector extends AnyRef
- trait InflectorImports extends AnyRef
- case class MapQueryString (initialValues: Seq[(String, Seq[String])], rawValue: String) extends Product with Serializable
-
trait
MapWithIndifferentAccess
[+B] extends Map[String, B]
Inspired by Rails' MapWithIndifferentAccess, allows the substitution of symbols for strings as map keys.
Inspired by Rails' MapWithIndifferentAccess, allows the substitution of symbols for strings as map keys. Note that the map is still keyed with strings; symbols are stored in permgen, so symbol keys maps should not be used for maps with arbitrary keys. There is no performance gain using symbols. It is here to make our Rubyists feel more at home.
-
trait
Mimes
extends AnyRef
A utility to help with mime type detection for a given file path or url
- class MultiMap extends Map[String, Seq[String]]
- trait MultiMapHeadView [A, B] extends Map[A, B]
- class MultiMapHeadViewValueReader [T <: MultiMapHeadView[String, String]] extends ValueReader[T, String]
- class MultiParamsValueReader extends ValueReader[MultiParams, Seq[String]]
-
trait
MutableMapWithIndifferentAccess
[B] extends MapWithIndifferentAccess[B] with Map[String, B]
- See also
MapWithIndifferentAccess
-
sealed
trait
NotNothing
[A] extends AnyRef
Nice trick from Miles Sabin using ambiguity in implicit resolution to disallow Nothing
- trait ParamsValueReaderProperties extends AnyRef
- class RicherString extends AnyRef
- class StringMapValueReader extends ValueReader[Map[String, String], String]
- trait UrlCodingUtils extends AnyRef
- trait ValueReader [S, U] extends AnyRef
Value Members
-
def
using[A, B <: AnyRef { def close(): Unit }](closeable: B)(f: (B) ⇒ A): A
Executes a block with a closeable resource, and closes it after the block runs
Executes a block with a closeable resource, and closes it after the block runs
- A
the return type of the block
- B
the closeable resource type
- closeable
the closeable resource
- f
the block
- object DateUtil
- object FileCharset
- object Inflector extends Inflector
- object InflectorImports extends InflectorImports
- object MapQueryString extends Serializable
- object MimeTypes extends Mimes
- object Mimes
- object MultiMap
- object MultiMapHeadView
-
object
NotEmpty
Extractor object, useful for handling empty form parameter submissions:
Extractor object, useful for handling empty form parameter submissions:
params.get("foo") match { case NotEmpty(value) => processValue(value) case _ => message("foo is required") }
- object NotNothing
- object ParamsValueReaderProperties extends ParamsValueReaderProperties
- object RicherString
- object UrlCodingUtils extends UrlCodingUtils