implicit class StringConv extends AnyRef
Provides implicit string conversions.
- Alphabetic
- By Inheritance
- StringConv
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StringConv(str: String)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toDate(format: DateFormat): Date
Parses text from the beginning of this string to produce a date.
Parses text from the beginning of this string to produce a date.
- format
the date format to be used for parsing
- returns
a new date converted from this string
- Annotations
- @throws(classOf[ParseException])
- Exceptions thrown
ParseException
if this string cannot be converted toDate
- Note
May not use the entire text of the given string.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toTime: Time
This string must be composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds.
This string must be composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds. The general format is: "xdxhxmxsxms", where "x" denotes a number (a sequence of digits). Each number/unit part is optional. The unit identifiers are case sensitive (lower case is mandatory). No whitespace is allowed.
- returns
a new time converted from this string
- Annotations
- @throws(classOf[IllegalArgumentException])
"3d25m".toTime //3 days and 25 minutes
, "5m12s125ms".toTime //5 minutes, 12 seconds and 125 milliseconds
- Exceptions thrown
IllegalArgumentException
if this string cannot be converted toTime
Examples: - 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])