sealed abstract
class
Resource[T, R <: Resource[T, R]] extends AnyRef
Abstract Value Members
-
abstract
def
build(value: T): R
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(that: R): R
-
def
-(that: R): R
-
def
->[B](y: B): (Resource[T, R], B)
-
def
<(that: R): Boolean
-
def
<=(that: R): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
>(that: R): Boolean
-
def
>=(that: R): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Resource[T, R]
-
-
-
def
equals(other: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
toString(): String
-
val
value: T
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Resource[T, R], B)
Shadowed Implicit Value Members
-
def
+(other: String): String
Inherited by implicit conversion any2stringadd from
Resource[T, R] to any2stringadd[Resource[T, R]]
Inherited by implicit conversion StringFormat from
Resource[T, R] to StringFormat[Resource[T, R]]
Inherited by implicit conversion Ensuring from
Resource[T, R] to Ensuring[Resource[T, R]]
Inherited by implicit conversion ArrowAssoc from
Resource[T, R] to ArrowAssoc[Resource[T, R]]
Sealed base class that Resources must extend. Requires that resources have a single numeric value, and then provides useful arithmetic and relational operators on that value.
the type of number the value is expressed in, e.g. Long or Double
self-referential type required to make all the operators work nicely