Last active
December 19, 2015 05:39
-
-
Save edgarchan/5905937 to your computer and use it in GitHub Desktop.
trait delegator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Delegator[T]{ | |
protected def internal:T | |
} | |
trait ReadStream[T <: JReadStream[T]] extends ExceptionSupport[T] { self: Delegator[T] => | |
trait WriteStream[T <: JWriteStream[T]] extends ExceptionSupport[T] { self: Delegator[T] => | |
class AsyncFile(protected val internal: JAsyncFile) extends Delegator[JAsyncFile] with ReadStream[JAsyncFile] with WriteStream[JAsyncFile] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like it. We'll do that.