File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ sealed trait Notification[+T] {
8
8
}
9
9
10
10
/**
11
- * Provides pattern matching support for Notifications.
11
+ * Provides pattern matching support and constructors for Notifications.
12
12
*
13
13
* Example:
14
14
* {{{
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ package rx.lang.scala
20
20
/**
21
21
* The Observable interface that implements the Reactive Pattern.
22
22
*/
23
+ // constructor is private because users should use apply in companion
23
24
class Observable [+ T ] private [scala] (val asJava : rx.Observable [_ <: T ])
24
25
// Uncommenting this line combined with `new Observable(...)` instead of `new Observable[T](...)`
25
26
// makes the compiler crash
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import rx.lang.scala.ImplicitFunctionConversions._
23
23
*
24
24
* You can obtain a BlockingObservable from an Observable using [[Observable.toBlockingObservable ]]
25
25
*/
26
+ // constructor is private because users should use Observable.toBlockingObservable
26
27
class BlockingObservable [+ T ] private [scala] (val asJava : rx.observables.BlockingObservable [_ <: T ])
27
28
extends AnyVal
28
29
{
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ package rx.lang.scala.util
3
3
/**
4
4
* Wraps a value and a timestamp.
5
5
*/
6
- class Timestamped [+ T ](val asJava : rx.util.Timestamped [_ <: T ]) extends AnyVal {
6
+ // constructor is private because users should use apply from companion
7
+ class Timestamped [+ T ] private [util] (val asJava : rx.util.Timestamped [_ <: T ]) extends AnyVal {
7
8
/**
8
9
* Returns the timestamp, in milliseconds.
9
10
*/
You can’t perform that action at this time.
0 commit comments