RxJava Window If Changed (Parent)

An RxJava transformer which combines replay(1), publish(), and refCount() operators.

Лицензия

Лицензия

Группа

Группа

com.jakewharton.rx
Идентификатор

Идентификатор

window-if-changed-parent
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

RxJava Window If Changed (Parent)
An RxJava transformer which combines replay(1), publish(), and refCount() operators.
Система контроля версий

Система контроля версий

http://github.com/JakeWharton/RxWindowIfChanged

Скачать window-if-changed-parent

Имя Файла Размер
window-if-changed-parent-1.0.0.pom 3 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.jakewharton.rx/window-if-changed-parent/ -->
<dependency>
    <groupId>com.jakewharton.rx</groupId>
    <artifactId>window-if-changed-parent</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.jakewharton.rx/window-if-changed-parent/
implementation 'com.jakewharton.rx:window-if-changed-parent:1.0.0'
// https://jarcasting.com/artifacts/com.jakewharton.rx/window-if-changed-parent/
implementation ("com.jakewharton.rx:window-if-changed-parent:1.0.0")
'com.jakewharton.rx:window-if-changed-parent:pom:1.0.0'
<dependency org="com.jakewharton.rx" name="window-if-changed-parent" rev="1.0.0">
  <artifact name="window-if-changed-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.jakewharton.rx', module='window-if-changed-parent', version='1.0.0')
)
libraryDependencies += "com.jakewharton.rx" % "window-if-changed-parent" % "1.0.0"
[com.jakewharton.rx/window-if-changed-parent "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • window-if-changed
  • window-if-changed-kotlin

RxJava Window If Changed

The WindowIfChanged operator for RxJava 2 divides an Observable that emits items into an Observable that emits Observables, each one of which emits some subset of the items from the original source. The items in each inner Observable all have a common "key" based on a key selector function. A new inner Observable is emitted and the previous inner Observable completes each time the key changes from the previous item.

marble diagram

Observable<Actions> actions = //...

Observable<GroupedObservable<String, Action>> targetedActions =
    WindowIfChanged.create(actions, action -> action.target);

Download

Maven:

<dependency>
  <groupId>com.jakewharton.rx</groupId>
  <artifactId>window-if-changed</artifactId>
  <version>1.0.0</version>
</dependency>

Gradle:

compile 'com.jakewharton.rx:window-if-changed:1.0.0'

If you use Kotlin, a package with an extension method for Observable is provided. Replace the window-if-changed artifact ID above with window-if-changed-kotlin.

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright 2016 Jake Wharton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Версии библиотеки

Версия
1.0.0