trait BasicTypesHelpers extends AnyRef
This trait adds functionality to Scala standard types
- Self Type
- BasicTypesHelpers with StringHelpers with ControlHelpers
- Alphabetic
- By Inheritance
- BasicTypesHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class Boolean2 extends AnyRef
This decorator class adds a ternary operator to a Boolean value
- implicit class OptionExtension[T] extends AnyRef
- implicit final class OptionalCons extends AnyRef
Optional cons that implements the expression:
expr ?> value ::: List - implicit final class PartialFunctionWrapper[A] extends AnyRef
A helper class that facilitates wrapping of one PartialFunction around another
- implicit class TryExtension[T] extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asBoolean(in: String): Box[Boolean]
A helper that will convert the String to a Boolean if it's t, true, yes, 1, f, false, no, or 0
- def asDouble(in: String): Box[Double]
Safely convert the specified String to a Double.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInt(in: String): Box[Int]
Safely convert the specified String to an Int.
- def asLong(in: Any): Box[Long]
Convert any object to an "equivalent" Long depending on its value
- def asLong(in: String): Box[Long]
Safely convert the specified String to a Long.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compareElem(left: Elem, right: Elem): Boolean
Compare two Elems
- def compareMetaData(left: List[MetaData], right: List[MetaData]): Boolean
Compare the metadata of two attributes
- def compareNode(left: Node, right: Node): Boolean
Comparse two XML nodes
- def compareXml(left: NodeSeq, right: NodeSeq): Boolean
Compare two NodeSeq and return true if they are equal, even if attribute order of Elems is different
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEq(a: Array[Byte], b: Array[Byte]): Boolean
Compare two arrays of Byte for byte equality.
Compare two arrays of Byte for byte equality.
- returns
true if two Byte arrays contain the same bytes
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notEq(a: Array[Byte], b: Array[Byte]): Boolean
Compare two arrays of Byte for byte equality.
Compare two arrays of Byte for byte equality.
- returns
true if two Byte arrays don't contain the same bytes
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBoolean(in: Any): Boolean
Convert any object to an "equivalent" Boolean depending on its value
- def toByteArrayInputStream(in: InputStream): ByteArrayInputStream
Convert any InputStream to a ByteArrayInputStream
- def toInt(in: Any): Int
Convert any object to an "equivalent" Int depending on its value
- def toLong(in: Any): Long
Convert any object to an "equivalent" Long depending on its value
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object AsBoolean
A helpful Boolean extractor
- object AsDouble
A helpful Double extractor
- object AsInt
A helpful Int extractor
- object AsLong
A helpful Long extractor