com.gu.facia.api.utils.IntegerString.scala Maven / Gradle / Ivy
package com.gu.facia.api.utils
import scala.util.Try
object IntegerString {
def unapply(s: String): Option[Int] = Try {
s.toInt
}.toOption
}
package com.gu.facia.api.utils
import scala.util.Try
object IntegerString {
def unapply(s: String): Option[Int] = Try {
s.toInt
}.toOption
}