Tabnine Logo
FlowableWhileDoWhile.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
hu.akarnokd.rxjava2.expr.FlowableWhileDoWhile
constructor

Best Java code snippets using hu.akarnokd.rxjava2.expr.FlowableWhileDoWhile.<init> (Showing top 4 results out of 315)

origin: akarnokd/RxJava2Extensions

/**
 * Return an Flowable that re-emits the emissions from the source
 * Flowable as long as the condition is true before the first or subsequent subscribe() calls.
 * <p>
 * <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/whileDo.png" alt="">
 * 
 * @param <T> the value type
 * @param source the source Flowable to work with
 * @param preCondition
 *            the condition to evaluate before subscribing to or
 *            replaying the source Flowable
 * @return an Flowable that replays the emissions from the source
 *         Flowable so long as <code>preCondition</code> is true
 */
public static <T> Flowable<T> whileDo(Publisher<? extends T> source, BooleanSupplier preCondition) {
  ObjectHelper.requireNonNull(source, "source is null");
  ObjectHelper.requireNonNull(preCondition, "preCondition is null");
  return RxJavaPlugins.onAssembly(new FlowableWhileDoWhile<T>(source, preCondition, preCondition));
}
origin: com.github.akarnokd/rxjava2-extensions

/**
 * Return an Flowable that re-emits the emissions from the source
 * Flowable as long as the condition is true before the first or subsequent subscribe() calls.
 * <p>
 * <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/whileDo.png" alt="">
 * 
 * @param <T> the value type
 * @param source the source Flowable to work with
 * @param preCondition
 *            the condition to evaluate before subscribing to or
 *            replaying the source Flowable
 * @return an Flowable that replays the emissions from the source
 *         Flowable so long as <code>preCondition</code> is true
 */
public static <T> Flowable<T> whileDo(Publisher<? extends T> source, BooleanSupplier preCondition) {
  ObjectHelper.requireNonNull(source, "source is null");
  ObjectHelper.requireNonNull(preCondition, "preCondition is null");
  return RxJavaPlugins.onAssembly(new FlowableWhileDoWhile<T>(source, preCondition, preCondition));
}
origin: akarnokd/RxJava2Extensions

/**
 * Return an Flowable that re-emits the emissions from the source
 * Flowable, and then re-subscribes to the source long as a condition is
 * true.
 * <p>
 * <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doWhile.png" alt="">
 * 
 * @param <T> the value type
 * @param source the source Flowable to work with
 * @param postCondition
 *            the post condition to test after the source
 *            Flowable completes
 * @return an Flowable that replays the emissions from the source
 *         Flowable, and then continues to replay them so long as the post
 *         condition is true
 */
public static <T> Flowable<T> doWhile(Publisher<? extends T> source, BooleanSupplier postCondition) {
  ObjectHelper.requireNonNull(source, "source is null");
  ObjectHelper.requireNonNull(postCondition, "postCondition is null");
  return RxJavaPlugins.onAssembly(new FlowableWhileDoWhile<T>(source, AlwaysTrueBooleanSupplier.INSTANCE, postCondition));
}
origin: com.github.akarnokd/rxjava2-extensions

/**
 * Return an Flowable that re-emits the emissions from the source
 * Flowable, and then re-subscribes to the source long as a condition is
 * true.
 * <p>
 * <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doWhile.png" alt="">
 * 
 * @param <T> the value type
 * @param source the source Flowable to work with
 * @param postCondition
 *            the post condition to test after the source
 *            Flowable completes
 * @return an Flowable that replays the emissions from the source
 *         Flowable, and then continues to replay them so long as the post
 *         condition is true
 */
public static <T> Flowable<T> doWhile(Publisher<? extends T> source, BooleanSupplier postCondition) {
  ObjectHelper.requireNonNull(source, "source is null");
  ObjectHelper.requireNonNull(postCondition, "postCondition is null");
  return RxJavaPlugins.onAssembly(new FlowableWhileDoWhile<T>(source, AlwaysTrueBooleanSupplier.INSTANCE, postCondition));
}
hu.akarnokd.rxjava2.exprFlowableWhileDoWhile<init>

Popular methods of FlowableWhileDoWhile

    Popular in Java

    • Creating JSON documents from java classes using gson
    • setRequestProperty (URLConnection)
    • compareTo (BigDecimal)
    • findViewById (Activity)
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • Menu (java.awt)
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now