From 7f71dd844aa92161d919bd51b7d0adf18a8cc421 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Thu, 13 Jul 2017 00:08:04 +0300 Subject: [PATCH] Update Maybe#defaultIfEmpty javadoc (#5480) --- src/main/java/io/reactivex/Maybe.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/reactivex/Maybe.java b/src/main/java/io/reactivex/Maybe.java index a2e033acbc..c8fdb539e7 100644 --- a/src/main/java/io/reactivex/Maybe.java +++ b/src/main/java/io/reactivex/Maybe.java @@ -2192,6 +2192,8 @@ public final Single count() { /** * Returns a Maybe that emits the item emitted by the source Maybe or a specified default item * if the source Maybe is empty. + *

Note that the result Maybe is semantically equivalent to a Single, since it's guaranteed to emit exactly one item or an error. + * See {@link #toSingle(Object)} for a method with equivalent behavior which returns a Single. *

* *