implicit object JoinableStrings extends Joinable[Seq[String]]
Provides an implicit implementation of the Joinable type class for sequences of strings (Seq[String]).
This enables sequences of strings to be combined, defines a zero value for sequences, and validates
non-empty sequences.
- Alphabetic
- By Inheritance
- JoinableStrings
- 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: Seq[String], t2: Seq[String]): Seq[String]
Combines two sequences of strings into a single sequence by appending the elements of the second sequence to the elements of the first sequence.
Combines two sequences of strings into a single sequence by appending the elements of the second sequence to the elements of the first sequence.
- t1
The first sequence of strings.
- t2
The second sequence of strings to be appended to the first sequence.
- returns
A new sequence of strings containing all the elements of
t1, followed by all the elements oft2.
- Definition Classes
- JoinableStrings → 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: Seq[String]): Boolean
Validates if the provided sequence of strings is non-empty.
Validates if the provided sequence of strings is non-empty.
- t
The sequence of strings to validate.
- returns
trueif the sequence is non-empty, otherwisefalse.
- Definition Classes
- JoinableStrings → 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: Seq[String]
Defines the zero value for sequences of strings (
Seq[String]).Defines the zero value for sequences of strings (
Seq[String]). The zero value is represented by an empty sequence (Nil) and serves as the identity element for thejoinoperation in theJoinabletype class, allowing seamless combination of string sequences while preserving the associative and identity properties.- Definition Classes
- JoinableStrings → Joinable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)