Packages

object BusinessId extends Parsable[BusinessId]

Linear Supertypes
Parsable[BusinessId], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BusinessId
  2. Parsable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait ChecksumValidationResult extends AnyRef
  2. case class InvalidChecksumDigitInInput(was: Int, shouldHaveBeen: Int) extends ChecksumValidationResult with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(input: String): Either[String, BusinessId]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checksum(input: String): ChecksumValidationResult

    See http://tarkistusmerkit.teppovuori.fi/tarkmerk.htm#y-tunnus2 for specs.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def createFromStringOfCorrectLength(originalInput: String, canonizedInput: String): Either[String, BusinessId]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def fromString(input: String): Either[String, BusinessId]

    Create a T from an input String, returning an scala.util.Either.

    Create a T from an input String, returning an scala.util.Either.

    See also fromStringUnsafe for cases where you are sure that the input is a valid T (or you are willing to handle exceptions).

    Examples:

    >>> Pic("070377-281V")
    Right(070377-281V)
    
    >>> Pic("070377-281")
    Left(Invalid PIC: '070377-281'. PIC should have 11 characters, but was 10 characters.)
    
    >>> Pic("070377-2818")
    Left(Invalid PIC: '070377-2818'. The control character ('8') is wrong: it should be 'V'.)
    input

    a valid String representation of T.

    returns

    Left(String) if the given String is not a valid String representation of T, return a scala.util.Left containing an error message. Right(T) if the given String is a valid String representation of T, return a scala.util.Right containing the T object.

    Definition Classes
    BusinessIdParsable
  13. def fromStringU(input: String): BusinessId

    A shorter alias for fromStringUnsafe.

    A shorter alias for fromStringUnsafe. See the documentation for that function.

    Examples:

    >>> Pic.fromStringU("070377-281V")
    070377-281V
    
    >>> // Pic.fromStringU("foo") would throw an IllegalArgumentException.
    Definition Classes
    Parsable
  14. def fromStringUnsafe(input: String): BusinessId

    Create a T from an input String, throwing an scala.IllegalArgumentException if the input is not a valid String representation of T.

    Create a T from an input String, throwing an scala.IllegalArgumentException if the input is not a valid String representation of T.

    See also:

    • fromString for cases where you are not sure if the input is a valid T (for example, the input comes from a user), which returns an Either for you to handle.
    • fromStringU for a shorter named alias of this function.

    Examples:

    >>> Pic.fromStringUnsafe("070377-281V")
    070377-281V
    
    >>> // Pic.fromStringUnsafe("foo") would throw an IllegalArgumentException.
    input

    a valid String representation of T.

    returns

    a T object if the input is a valid String representation of T.

    Definition Classes
    Parsable
    Exceptions thrown

    scala.IllegalArgumentException if the input is not a valid String representation of T.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. object ChecksumOk extends ChecksumValidationResult with Product with Serializable
  27. object SumMod11ResultsIn1 extends ChecksumValidationResult with Product with Serializable

Inherited from Parsable[BusinessId]

Inherited from AnyRef

Inherited from Any

Ungrouped