All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalatra.util.RicherString.scala Maven / Gradle / Ivy

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