Class SingleContains<T>

  • All Implemented Interfaces:
    SingleSource<java.lang.Boolean>

    public final class SingleContains<T>
    extends Single<java.lang.Boolean>
    • Field Detail

      • value

        final java.lang.Object value
      • comparer

        final BiPredicate<java.lang.Object,​java.lang.Object> comparer
    • Constructor Detail

      • SingleContains

        public SingleContains​(SingleSource<T> source,
                              java.lang.Object value,
                              BiPredicate<java.lang.Object,​java.lang.Object> comparer)
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(SingleObserver<? super java.lang.Boolean> observer)
        Description copied from class: Single
        Implement this method in subclasses to handle the incoming SingleObservers.

        There is no need to call any of the plugin hooks on the current Single instance or the SingleObserver; all hooks and basic safeguards have been applied by Single.subscribe(SingleObserver) before this method gets called.

        Specified by:
        subscribeActual in class Single<java.lang.Boolean>
        Parameters:
        observer - the SingleObserver to handle, not null