blob: c8f873878f2af4c419879d406991bf7c9ebe4c01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
class ReferenceQueue[T] {
def wrapper(jref: ReferenceQueue[_]): ReferenceQueue[T] =
jref match {
case null => null
}
// def wrapper(jref: ReferenceQueue[_]): ReferenceQueue[T] = OptionMatching.runOrElse(jref)(((x1: ReferenceQueue[_]) =>
// (OptionMatching.guard(null.==(x1), x1.asInstanceOf[ReferenceQueue[_]]).flatMap(((x2: ReferenceQueue[_]) =>
// OptionMatching.one(null))): Option[ReferenceQueue[T]]).orElse(
// (OptionMatching.zero: Option[ReferenceQueue[T]])))
// )
}
|