Package

com.github.choppythelumberjack

tryclose

Permalink

package tryclose

Linear Supertypes
ImplicitCloseables, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. tryclose
  2. ImplicitCloseables
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CanClose[-T] extends AnyRef

    Permalink
  2. implicit class CloseableThrowableEvidence[T <: Throwable] extends CanClose[T]

    Permalink
    Definition Classes
    ImplicitCloseables
  3. final case class Failure[+T](exception: Throwable) extends TryCloseResult[T] with Product with Serializable

    Permalink
  4. trait ImplicitCloseHelper extends AnyRef

    Permalink
  5. trait ImplicitCloseables extends AnyRef

    Permalink
  6. implicit class LambdaTryCloseResultExtensions[T] extends AnyRef

    Permalink
  7. implicit class LambdaWrappedResultExtensions[T] extends AnyRef

    Permalink
  8. case class LambdaWrapper[T](element: T, close: (T) ⇒ Unit) extends Product with Serializable

    Permalink
  9. final case class Success[+T](value: T) extends TryCloseResult[T] with Product with Serializable

    Permalink
  10. abstract class TryClose[+T] extends ImplicitCloseHelper

    Permalink
  11. trait TryCloseResult[+T] extends AnyRef

    Permalink

    These classes represent the final outcome from a TryClose.resolve invocation, and as such, they don't close anything so they don't need evidence it's closeable.

    These classes represent the final outcome from a TryClose.resolve invocation, and as such, they don't close anything so they don't need evidence it's closeable. The below classes mirror Scala's standard Try/Success/Failure objects in a limited capacity because they represent result entities of the TryClose transformation as opposed to intermediate products. For this reason, method such as recover, and recoverWith, and transform are missing. All these afformentioned transformations should have already been applied to TryClose before the retrieve was called. The Monad, Functor and other operations available on these result type objects should not actually be used to change their state from success to failure or failure to success, they are merely for the sake of user convenience.

  12. implicit class WrappedResultExtensions[T] extends AnyRef

    Permalink
  13. implicit class WrappedTryCloseExtensions[T] extends AnyRef

    Permalink
  14. case class Wrapper[+T](element: T) extends Product with Serializable

    Permalink

Value Members

  1. implicit object CloseableTryCloseEvidence extends CanClose[TryClose[Any]]

    Permalink
    Definition Classes
    ImplicitCloseables
  2. implicit object CloseableUnitEvidence extends CanClose[Unit]

    Permalink
    Definition Classes
    ImplicitCloseables
  3. object JavaImplicits

    Permalink
    Definition Classes
    ImplicitCloseables
  4. object StructuralImplicits

    Permalink
    Definition Classes
    ImplicitCloseables
  5. object TryClose

    Permalink
  6. implicit def lambdaWrapperCloseable[T]: CanClose[LambdaWrapper[T]]

    Permalink
    Definition Classes
    ImplicitCloseables
  7. def wrap[T](t: T): Wrapper[T]

    Permalink
  8. implicit def wrapperCloseable[T]: CanClose[Wrapper[T]]

    Permalink
    Definition Classes
    ImplicitCloseables

Inherited from ImplicitCloseables

Inherited from AnyRef

Inherited from Any

Ungrouped