implicit object JoinableString extends Joinable[String]
Provides an implicit implementation of the Joinable type class for the String type.
This enables strings to be combined using the join method, defines a zero value for
strings, and validates non-empty strings.
- Alphabetic
- By Inheritance
- JoinableString
- Joinable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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()
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join(t1: String, t2: String): String
Method to join two lines of input, which are parts of the same record (in multiline mode), keeping the line break between them, which belongs to the value of a quoted field.
Method to join two lines of input, which are parts of the same record (in multiline mode), keeping the line break between them, which belongs to the value of a quoted field. (Up to 1.7.0, the line break was dropped.)
- t1
the first T value.
- t2
the second T value.
- returns
the joined T value.
- Definition Classes
- JoinableString → Joinable
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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 toString(): String
- Definition Classes
- AnyRef → Any
- def valid(t: String): Boolean
Validates whether the given string is non-empty.
Validates whether the given string is non-empty.
- t
The string to validate.
- returns
trueif the string is non-empty,falseotherwise.
- Definition Classes
- JoinableString → Joinable
- 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()
- val zero: String
Represents the zero (identity) value for the
Stringtype in the context of theJoinabletype class.Represents the zero (identity) value for the
Stringtype in the context of theJoinabletype class. In this case, the zero value is an empty string (""), which acts as the neutral element in string concatenation operations.- Definition Classes
- JoinableString → Joinable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)