Object/Trait

javascalautils.converters.j2s

Converters

Related Docs: trait Converters | package j2s

Permalink

object Converters extends Converters

Object implementing all converter traits.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Converters
  2. Converters
  3. FutureConverters
  4. EitherConverters
  5. TryConverters
  6. OptionConverters
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asScalaEither[L, R](underlying: Either[L, R]): Product with Serializable with scala.util.Either[L, R]

    Permalink

    Converts a javascalautils.Either to a scala.util.Either.

    Converts a javascalautils.Either to a scala.util.Either.

    import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight }
    
    val eitherRight = asScalaEither(new JRight[String,String]("Left is not Right"))
    val eitherLeft = asScalaEither(new JLeft[String,String]("Left is not Right"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    EitherConverters
    Since

    1.0

  6. def asScalaFailure[T](underlying: Failure[T]): scala.util.Failure[Nothing]

    Permalink

    Converts a javascalautils.Failure to a scala.util.Failure.

    Converts a javascalautils.Failure to a scala.util.Failure.

    import javascalautils.{Try => JTry, Success => JSuccess, Failure => JFailure}
    
    val failure = asScalaFailure(new JFailure(new Exception("Error, terror")))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    TryConverters
    Since

    1.0

  7. def asScalaFuture[T](underlying: Future[T]): Future[T]

    Permalink

    Converts a javascalautils.concurrent.Future to a scala.concurrent.Future.

    Converts a javascalautils.concurrent.Future to a scala.concurrent.Future.

    import javascalautils.concurrent.{ Future => JFuture }
    //just illustrating a Java Future by creating an already fulfilled one
    val future = asScalaFuture(JFuture.successful("The Future is here"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    FutureConverters
    Since

    1.0

  8. def asScalaLeft[L, R](underlying: Left[L, R]): scala.util.Left[L, Nothing]

    Permalink

    Converts a javascalautils.Left to a scala.util.Left.

    Converts a javascalautils.Left to a scala.util.Left.

    import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight }
    
    val left = asScalaLeft(new JLeft[String,String]("Left is not Right"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    EitherConverters
    Since

    1.0

  9. def asScalaNone[T](underlying: None[T]): scala.None.type

    Permalink

    Converts a javascalautils.None to a scala.None.

    Converts a javascalautils.None to a scala.None.

    import javascalautils.{ None => JNone, Option => JOption, Some => JSome }
    
    val optionNone = asScalaOption(new JNone())
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    OptionConverters
    Since

    1.0

  10. def asScalaOption[T](underlying: Option[T]): scala.Option[T]

    Permalink

    Converts a javascalautils.Option to a scala.Option.

    Converts a javascalautils.Option to a scala.Option.

    import javascalautils.{ None => JNone, Option => JOption, Some => JSome }
    
    val optionNone = asScalaOption(new JNone())
    val optionSome = asScalaOption(new JSome("Some is never None"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    OptionConverters
    Since

    1.0

  11. def asScalaRight[L, R](underlying: Right[L, R]): scala.util.Right[Nothing, R]

    Permalink

    Converts a javascalautils.Right to a scala.util.Right.

    Converts a javascalautils.Right to a scala.util.Right.

    import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight }
    
    val right = asScalaRight(new JRight[String,String]("Left is not Right"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    EitherConverters
    Since

    1.0

  12. def asScalaSome[T](underlying: Some[T]): scala.Some[T]

    Permalink

    Converts a javascalautils.Some to a scala.Some.

    Converts a javascalautils.Some to a scala.Some.

    import javascalautils.{ None => JNone, Option => JOption, Some => JSome }
    
    val optionSome = asScalaOption(new JSome("Some is never None"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    OptionConverters
    Since

    1.0

  13. def asScalaSuccess[T](underlying: Success[T]): scala.util.Success[T]

    Permalink

    Converts a javascalautils.Success to a scala.util.Success.

    Converts a javascalautils.Success to a scala.util.Success.

    import javascalautils.{Try => JTry, Success => JSuccess, Failure => JFailure}
    
    val success = asScalaSuccess(new JSuccess("Success is never a Failure"))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    TryConverters
    Since

    1.0

  14. def asScalaTry[T](underlying: Try[T]): Product with Serializable with scala.util.Try[T]

    Permalink

    Converts a javascalautils.Try to a scala.util.Try.

    Converts a javascalautils.Try to a scala.util.Try.

    import javascalautils.{Try => JTry, Success => JSuccess, Failure => JFailure}
    
    val trySuccess = asScalaTry(new JSuccess("Success is never a Failure"))
    val tryFailure = asScalaTry(new JFailure(new Exception("Error, terror")))
    underlying

    The type to be converted

    returns

    The converted type

    Definition Classes
    TryConverters
    Since

    1.0

  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Converters

Inherited from FutureConverters

Inherited from EitherConverters

Inherited from TryConverters

Inherited from OptionConverters

Inherited from AnyRef

Inherited from Any

Ungrouped