congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.oath.cyclops.internal.stream.spliterators.push
Code IndexAdd Tabnine to your IDE (free)

How to use com.oath.cyclops.internal.stream.spliterators.push

Best Java code snippets using com.oath.cyclops.internal.stream.spliterators.push (Showing top 20 results out of 315)

origin: aol/cyclops

@Override
public void forEachAsync(final Consumer<? super T> action) {
  if (async == Type.NO_BACKPRESSURE)
    source.subscribeAll(action, this.defaultErrorHandler, () -> {
    });
  else
    source.subscribe(action, this.defaultErrorHandler, () -> {
    }).request(Long.MAX_VALUE);
}
origin: aol/cyclops

@Override
public <X extends Throwable> Subscription forEach(final long numberOfElements, final Consumer<? super T> consumer) {
  StreamSubscription sub = source.subscribe(consumer, this.defaultErrorHandler, () -> {
  });
  if(numberOfElements>0)
   sub.request(numberOfElements);
  return sub;
}
origin: aol/cyclops

  @Override
  public void cancel() {
    ref[0].cancel();
    super.cancel();
  }
};
origin: aol/cyclops

public Operator<Integer> createTwoAndError(){
  return new ArrayConcatonatingOperator<>(new ArrayOfValuesOperator<>(),
      new SpliteratorToOperator<>(Stream.of(1).spliterator()),
      Fixtures.oneAndErrorSource);
}
public Operator<Integer> createThreeErrors(){
origin: aol/cyclops

public Operator<Integer> createEmpty(){
  return new FilterOperator<>(new ArrayOfValuesOperator<>(), i->true);
}
public Operator<Integer> createOne(){
origin: aol/cyclops

public Operator<Integer> createThree(){
  return  new MapOperator<Integer,Integer>(new ArrayOfValuesOperator<>(1,2,3),i->i*2);
}
public Operator<Integer> createTwoAndError(){
origin: aol/cyclops

public Operator<Integer> createThree(){
  return new ZippingOperator<Integer,Integer,Integer>(new ArrayOfValuesOperator<>(1,2,3),new ArrayOfValuesOperator<>(10,11,12),(a,b)->a+b);
}
public Operator<Integer> createTwoAndError(){
origin: aol/cyclops

public Operator<Integer> createThree(){
  return  new SkipOperator<>(new ArrayOfValuesOperator<>(1,2,3,4,5,6),3);
}
public Operator<Integer> createTwoAndError(){
origin: aol/cyclops

@Override
public void subscribeAll(Consumer<? super R> onNext, Consumer<? super Throwable> onError, Runnable onComplete) {
    subscribe(onNext,onError,onComplete).request(Long.MAX_VALUE);
}
origin: aol/cyclops

  @Override
  public void cancel() {
    ref[0].cancel();
    super.cancel();
  }
};
origin: aol/cyclops

@Override
public void subscribeAll(Consumer<? super IN> onNext, Consumer<? super Throwable> onError, Runnable onCompleteDs) {
  subscribe(onNext,onError,onCompleteDs).request(Long.MAX_VALUE);
}
origin: aol/cyclops

@Override
public Subscriber<Long> createSubscriber() {
  SubscriberSource<Long> sub = new SubscriberSource<Long>();
  new MapOperator<Long,Long>(sub, i->i*2).subscribe(System.out::println,System.err::println,()->{});
  return sub;
}
origin: aol/cyclops

@Override
public Subscriber<Long> createSubscriber() {
  SubscriberSource<Long> sub = new SubscriberSource<Long>();
  new FilterOperator<Long>(sub, i->true).subscribe(System.out::println,System.err::println,()->{});
  return sub;
}
origin: aol/cyclops

@Override
public <X extends Throwable> void forEach(final Consumer<? super T> consumerElement, final Consumer<? super Throwable> consumerError,
                     final Runnable onComplete) {
  if (async != Type.NO_BACKPRESSURE) {
    this.source.subscribe(consumerElement, consumerError, onComplete).request(Long.MAX_VALUE);
  } else {
    source.subscribeAll(consumerElement, consumerError, onComplete);
  }
}
origin: aol/cyclops

@Override
public <X extends Throwable> Subscription forEach(final long numberOfElements, final Consumer<? super T> consumer,
                         final Consumer<? super Throwable> consumerError) {
  StreamSubscription sub = source.subscribe(consumer, consumerError, () -> {
  });
  if(numberOfElements>0)
   sub.request(numberOfElements);
  return sub;
}
origin: aol/cyclops

public Operator<Integer> createThree(){
  return  new FilterOperator<>(new ArrayOfValuesOperator<>(1,2,3),i->true);
}
public Operator<Integer> createTwoAndError(){
origin: aol/cyclops

public Operator<Integer> createEmpty(){
  return new MapOperator<Integer,Integer>(new ArrayOfValuesOperator<>(), i->i*2);
}
public Operator<Integer> createOne(){
origin: aol/cyclops

public Operator<Integer> createTwoAndError(){
  return new ZippingOperator<Integer,Integer,Integer>(Fixtures.twoAndErrorSource,new ArrayOfValuesOperator<>(10,11,12),(a, b)->a+b);
}
public Operator<Integer> createThreeErrors(){
origin: aol/cyclops

@Override
public <X extends Throwable> void forEach(final Consumer<? super T> consumerElement, final Consumer<? super Throwable> consumerError) {
  if (async != Type.NO_BACKPRESSURE) {
    this.source.subscribe(consumerElement, consumerError, () -> {
    }).request(Long.MAX_VALUE);
  } else {
    source.subscribeAll(consumerElement, consumerError, () -> {
    });
  }
}
origin: aol/cyclops

@Override
public <X extends Throwable> Subscription forEach(final long numberOfElements, final Consumer<? super T> consumer,
                         final Consumer<? super Throwable> consumerError, final Runnable onComplete) {
  StreamSubscription sub = source.subscribe(consumer, consumerError, onComplete);
  if(numberOfElements>0)
    sub.request(numberOfElements);
  return sub;
}
com.oath.cyclops.internal.stream.spliterators.push

Most used classes

  • ArrayConcatonatingOperator
    Created by johnmcclean on 12/01/2017.
  • ArrayOfValuesOperator
    Created by johnmcclean on 12/01/2017.
  • FilterOperator
    Created by johnmcclean on 12/01/2017.
  • FlatMapOperator
    Created by johnmcclean on 12/01/2017.
  • GroupedByTimeAndSizeOperator
    Created by johnmcclean on 12/01/2017.
  • IterableSourceOperator,
  • LazyMapOperator,
  • LazySingleValueOperator,
  • MapOperator,
  • Operator,
  • OperatorToIterable,
  • SingleValueOperator,
  • SkipOperator,
  • SlidingOperator,
  • SpliteratorToOperator,
  • StreamSubscription,
  • ZippingOperator,
  • AmbOperator$Racer,
  • AmbOperator
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