@@ -1509,8 +1509,6 @@ public Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit unit,
1509
1509
* Observable produced by the specified {@link Func0} produces a {@link rx.util.Closing} object. The {@link Func0} will then be used to create a new Observable to listen for the end of the next
1510
1510
* window.
1511
1511
*
1512
- * @param source
1513
- * The source {@link Observable} which produces values.
1514
1512
* @param closingSelector
1515
1513
* The {@link Func0} which is used to produce an {@link Observable} for every window created.
1516
1514
* When this {@link Observable} produces a {@link rx.util.Closing} object, the associated window
@@ -1519,8 +1517,8 @@ public Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit unit,
1519
1517
* An {@link Observable} which produces connected non-overlapping windows, which are emitted
1520
1518
* when the current {@link Observable} created with the {@link Func0} argument produces a {@link rx.util.Closing} object.
1521
1519
*/
1522
- public Observable <Observable <T >> window (Observable <? extends T > source , Func0 <? extends Observable <? extends Closing >> closingSelector ) {
1523
- return create (OperationWindow .window (source , closingSelector ));
1520
+ public Observable <Observable <T >> window (Func0 <? extends Observable <? extends Closing >> closingSelector ) {
1521
+ return create (OperationWindow .window (this , closingSelector ));
1524
1522
}
1525
1523
1526
1524
/**
@@ -1529,8 +1527,6 @@ public Observable<Observable<T>> window(Observable<? extends T> source, Func0<?
1529
1527
* Additionally the {@link Func0} argument is used to create an Observable which produces {@link rx.util.Closing} objects. When this Observable produces such an object, the associated window is
1530
1528
* emitted.
1531
1529
*
1532
- * @param source
1533
- * The source {@link Observable} which produces values.
1534
1530
* @param windowOpenings
1535
1531
* The {@link Observable} which when it produces a {@link rx.util.Opening} object, will cause
1536
1532
* another window to be created.
@@ -1541,34 +1537,30 @@ public Observable<Observable<T>> window(Observable<? extends T> source, Func0<?
1541
1537
* @return
1542
1538
* An {@link Observable} which produces windows which are created and emitted when the specified {@link Observable}s publish certain objects.
1543
1539
*/
1544
- public Observable <Observable <T >> window (Observable <? extends T > source , Observable <? extends Opening > windowOpenings , Func1 <Opening , ? extends Observable <? extends Closing >> closingSelector ) {
1545
- return create (OperationWindow .window (source , windowOpenings , closingSelector ));
1540
+ public Observable <Observable <T >> window (Observable <? extends Opening > windowOpenings , Func1 <Opening , ? extends Observable <? extends Closing >> closingSelector ) {
1541
+ return create (OperationWindow .window (this , windowOpenings , closingSelector ));
1546
1542
}
1547
1543
1548
1544
/**
1549
1545
* Creates an Observable which produces windows of collected values. This Observable produces connected
1550
1546
* non-overlapping windows, each containing "count" elements. When the source Observable completes or
1551
1547
* encounters an error, the current window is emitted, and the event is propagated.
1552
1548
*
1553
- * @param source
1554
- * The source {@link Observable} which produces values.
1555
1549
* @param count
1556
1550
* The maximum size of each window before it should be emitted.
1557
1551
* @return
1558
1552
* An {@link Observable} which produces connected non-overlapping windows containing at most
1559
1553
* "count" produced values.
1560
1554
*/
1561
- public Observable <Observable <T >> window (Observable <? extends T > source , int count ) {
1562
- return create (OperationWindow .window (source , count ));
1555
+ public Observable <Observable <T >> window (int count ) {
1556
+ return create (OperationWindow .window (this , count ));
1563
1557
}
1564
1558
1565
1559
/**
1566
1560
* Creates an Observable which produces windows of collected values. This Observable produces windows every
1567
1561
* "skip" values, each containing "count" elements. When the source Observable completes or encounters an error,
1568
1562
* the current window is emitted and the event is propagated.
1569
1563
*
1570
- * @param source
1571
- * The source {@link Observable} which produces values.
1572
1564
* @param count
1573
1565
* The maximum size of each window before it should be emitted.
1574
1566
* @param skip
@@ -1578,17 +1570,15 @@ public Observable<Observable<T>> window(Observable<? extends T> source, int coun
1578
1570
* An {@link Observable} which produces windows every "skipped" values containing at most
1579
1571
* "count" produced values.
1580
1572
*/
1581
- public Observable <Observable <T >> window (Observable <? extends T > source , int count , int skip ) {
1582
- return create (OperationWindow .window (source , count , skip ));
1573
+ public Observable <Observable <T >> window (int count , int skip ) {
1574
+ return create (OperationWindow .window (this , count , skip ));
1583
1575
}
1584
1576
1585
1577
/**
1586
1578
* Creates an Observable which produces windows of collected values. This Observable produces connected
1587
1579
* non-overlapping windows, each of a fixed duration specified by the "timespan" argument. When the source
1588
1580
* Observable completes or encounters an error, the current window is emitted and the event is propagated.
1589
1581
*
1590
- * @param source
1591
- * The source {@link Observable} which produces values.
1592
1582
* @param timespan
1593
1583
* The period of time each window is collecting values before it should be emitted, and
1594
1584
* replaced with a new window.
@@ -1597,17 +1587,15 @@ public Observable<Observable<T>> window(Observable<? extends T> source, int coun
1597
1587
* @return
1598
1588
* An {@link Observable} which produces connected non-overlapping windows with a fixed duration.
1599
1589
*/
1600
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , TimeUnit unit ) {
1601
- return create (OperationWindow .window (source , timespan , unit ));
1590
+ public Observable <Observable <T >> window (long timespan , TimeUnit unit ) {
1591
+ return create (OperationWindow .window (this , timespan , unit ));
1602
1592
}
1603
1593
1604
1594
/**
1605
1595
* Creates an Observable which produces windows of collected values. This Observable produces connected
1606
1596
* non-overlapping windows, each of a fixed duration specified by the "timespan" argument. When the source
1607
1597
* Observable completes or encounters an error, the current window is emitted and the event is propagated.
1608
1598
*
1609
- * @param source
1610
- * The source {@link Observable} which produces values.
1611
1599
* @param timespan
1612
1600
* The period of time each window is collecting values before it should be emitted, and
1613
1601
* replaced with a new window.
@@ -1618,8 +1606,8 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1618
1606
* @return
1619
1607
* An {@link Observable} which produces connected non-overlapping windows with a fixed duration.
1620
1608
*/
1621
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , TimeUnit unit , Scheduler scheduler ) {
1622
- return create (OperationWindow .window (source , timespan , unit , scheduler ));
1609
+ public Observable <Observable <T >> window (long timespan , TimeUnit unit , Scheduler scheduler ) {
1610
+ return create (OperationWindow .window (this , timespan , unit , scheduler ));
1623
1611
}
1624
1612
1625
1613
/**
@@ -1628,8 +1616,6 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1628
1616
* specified by the "count" argument (which ever is reached first). When the source Observable completes
1629
1617
* or encounters an error, the current window is emitted and the event is propagated.
1630
1618
*
1631
- * @param source
1632
- * The source {@link Observable} which produces values.
1633
1619
* @param timespan
1634
1620
* The period of time each window is collecting values before it should be emitted, and
1635
1621
* replaced with a new window.
@@ -1641,8 +1627,8 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1641
1627
* An {@link Observable} which produces connected non-overlapping windows which are emitted after
1642
1628
* a fixed duration or when the window has reached maximum capacity (which ever occurs first).
1643
1629
*/
1644
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , TimeUnit unit , int count ) {
1645
- return create (OperationWindow .window (source , timespan , unit , count ));
1630
+ public Observable <Observable <T >> window (long timespan , TimeUnit unit , int count ) {
1631
+ return create (OperationWindow .window (this , timespan , unit , count ));
1646
1632
}
1647
1633
1648
1634
/**
@@ -1651,8 +1637,6 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1651
1637
* specified by the "count" argument (which ever is reached first). When the source Observable completes
1652
1638
* or encounters an error, the current window is emitted and the event is propagated.
1653
1639
*
1654
- * @param source
1655
- * The source {@link Observable} which produces values.
1656
1640
* @param timespan
1657
1641
* The period of time each window is collecting values before it should be emitted, and
1658
1642
* replaced with a new window.
@@ -1666,8 +1650,8 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1666
1650
* An {@link Observable} which produces connected non-overlapping windows which are emitted after
1667
1651
* a fixed duration or when the window has reached maximum capacity (which ever occurs first).
1668
1652
*/
1669
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , TimeUnit unit , int count , Scheduler scheduler ) {
1670
- return create (OperationWindow .window (source , timespan , unit , count , scheduler ));
1653
+ public Observable <Observable <T >> window (long timespan , TimeUnit unit , int count , Scheduler scheduler ) {
1654
+ return create (OperationWindow .window (this , timespan , unit , count , scheduler ));
1671
1655
}
1672
1656
1673
1657
/**
@@ -1676,8 +1660,6 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1676
1660
* specified by the "timespan" argument. When the source Observable completes or encounters an error, the
1677
1661
* current window is emitted and the event is propagated.
1678
1662
*
1679
- * @param source
1680
- * The source {@link Observable} which produces values.
1681
1663
* @param timespan
1682
1664
* The period of time each window is collecting values before it should be emitted.
1683
1665
* @param timeshift
@@ -1688,8 +1670,8 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1688
1670
* An {@link Observable} which produces new windows periodically, and these are emitted after
1689
1671
* a fixed timespan has elapsed.
1690
1672
*/
1691
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , long timeshift , TimeUnit unit ) {
1692
- return create (OperationWindow .window (source , timespan , timeshift , unit ));
1673
+ public Observable <Observable <T >> window (long timespan , long timeshift , TimeUnit unit ) {
1674
+ return create (OperationWindow .window (this , timespan , timeshift , unit ));
1693
1675
}
1694
1676
1695
1677
/**
@@ -1698,8 +1680,6 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1698
1680
* specified by the "timespan" argument. When the source Observable completes or encounters an error, the
1699
1681
* current window is emitted and the event is propagated.
1700
1682
*
1701
- * @param source
1702
- * The source {@link Observable} which produces values.
1703
1683
* @param timespan
1704
1684
* The period of time each window is collecting values before it should be emitted.
1705
1685
* @param timeshift
@@ -1712,8 +1692,8 @@ public Observable<Observable<T>> window(Observable<? extends T> source, long tim
1712
1692
* An {@link Observable} which produces new windows periodically, and these are emitted after
1713
1693
* a fixed timespan has elapsed.
1714
1694
*/
1715
- public Observable <Observable <T >> window (Observable <? extends T > source , long timespan , long timeshift , TimeUnit unit , Scheduler scheduler ) {
1716
- return create (OperationWindow .window (source , timespan , timeshift , unit , scheduler ));
1695
+ public Observable <Observable <T >> window (long timespan , long timeshift , TimeUnit unit , Scheduler scheduler ) {
1696
+ return create (OperationWindow .window (this , timespan , timeshift , unit , scheduler ));
1717
1697
}
1718
1698
1719
1699
/**
0 commit comments