Interface RListRx<V>

    • Method Detail

      • get

        io.reactivex.rxjava3.core.Single<List<V>> get(int... indexes)
        Loads elements by specified indexes
        Parameters:
        indexes - of elements
        Returns:
        elements
      • addAfter

        io.reactivex.rxjava3.core.Single<Integer> addAfter(V elementToFind,
                                                           V element)
        Add element after elementToFind
        Parameters:
        elementToFind - - object to find
        element - - object to add
        Returns:
        new list size
      • addBefore

        io.reactivex.rxjava3.core.Single<Integer> addBefore(V elementToFind,
                                                            V element)
        Add element before elementToFind
        Parameters:
        elementToFind - - object to find
        element - - object to add
        Returns:
        new list size
      • descendingIterator

        io.reactivex.rxjava3.core.Flowable<V> descendingIterator()
      • descendingIterator

        io.reactivex.rxjava3.core.Flowable<V> descendingIterator(int startIndex)
      • iterator

        io.reactivex.rxjava3.core.Flowable<V> iterator(int startIndex)
      • lastIndexOf

        io.reactivex.rxjava3.core.Single<Integer> lastIndexOf(Object element)
        Returns last index of element or -1 if element isn't found
        Parameters:
        element - to find
        Returns:
        index of -1 if element isn't found
      • indexOf

        io.reactivex.rxjava3.core.Single<Integer> indexOf(Object element)
        Returns last index of element or -1 if element isn't found
        Parameters:
        element - to find
        Returns:
        index of -1 if element isn't found
      • add

        io.reactivex.rxjava3.core.Completable add(int index,
                                                  V element)
        Inserts element at index. Subsequent elements are shifted.
        Parameters:
        index - - index number
        element - - element to insert
        Returns:
        true if list was changed
      • addAll

        io.reactivex.rxjava3.core.Single<Boolean> addAll(int index,
                                                         Collection<? extends V> elements)
        Inserts elements at index. Subsequent elements are shifted.
        Parameters:
        index - - index number
        elements - - elements to insert
        Returns:
        true if list changed or false if element isn't found
      • fastSet

        io.reactivex.rxjava3.core.Completable fastSet(int index,
                                                      V element)
        Set element at index. Works faster than set(int, Object) but doesn't return previous element.
        Parameters:
        index - - index of object
        element - - object
        Returns:
        void
      • set

        io.reactivex.rxjava3.core.Maybe<V> set(int index,
                                               V element)
        Set element at index and returns previous element.
        Parameters:
        index - - index of object
        element - - object
        Returns:
        previous element or null if element wasn't set.
      • get

        io.reactivex.rxjava3.core.Maybe<V> get(int index)
        Get element at index
        Parameters:
        index - - index of object
        Returns:
        element
      • remove

        io.reactivex.rxjava3.core.Maybe<V> remove(int index)
        Removes element at index.
        Parameters:
        index - - index of object
        Returns:
        element or null if element wasn't set.
      • readAll

        io.reactivex.rxjava3.core.Single<List<V>> readAll()
        Read all elements at once
        Returns:
        list of values
      • trim

        io.reactivex.rxjava3.core.Completable trim(int fromIndex,
                                                   int toIndex)
        Trim list and remains elements only in specified range fromIndex, inclusive, and toIndex, inclusive.
        Parameters:
        fromIndex - - from index
        toIndex - - to index
        Returns:
        void
      • fastRemove

        io.reactivex.rxjava3.core.Completable fastRemove(int index)
        Remove object by specified index
        Parameters:
        index - - index of object
        Returns:
        void
      • range

        io.reactivex.rxjava3.core.Single<List<V>> range(int toIndex)
        Returns range of values from 0 index to toIndex. Indexes are zero based. -1 means the last element, -2 means penultimate and so on.
        Parameters:
        toIndex - - end index
        Returns:
        elements
      • range

        io.reactivex.rxjava3.core.Single<List<V>> range(int fromIndex,
                                                        int toIndex)
        Returns range of values from fromIndex to toIndex index including. Indexes are zero based. -1 means the last element, -2 means penultimate and so on.
        Parameters:
        fromIndex - - start index
        toIndex - - end index
        Returns:
        elements