org.scalatra.util.RicherString.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalatra_2.8.2.RC1 Show documentation
Show all versions of scalatra_2.8.2.RC1 Show documentation
The core Scalatra framework
The newest version!
package org.scalatra.util
import java.nio.charset.Charset
class RicherString(orig: String) {
def isBlank = orig == null || orig.trim.isEmpty
def isNonBlank = !isBlank
def toOption = if (isBlank) None else Some(orig)
// def urlDecode(charset: Charset =)
}
object RicherString {
implicit def stringToRicherString(s: String) = new RicherString(s)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy