Skip to content

Commit 7e84c8f

Browse files
Merge pull request ReactiveX#281 from michaeldejong/operation-buffer
Operation: buffer
2 parents ef0b52e + 89e630a commit 7e84c8f

File tree

6 files changed

+1614
-0
lines changed

6 files changed

+1614
-0
lines changed

rxjava-core/src/main/java/rx/Observable.java

+414
Large diffs are not rendered by default.

rxjava-core/src/main/java/rx/operators/OperationBuffer.java

+1,166
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package rx.util;
2+
3+
public interface BufferClosing {
4+
// Tagging interface for objects which can close buffers.
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package rx.util;
2+
3+
public class BufferClosings {
4+
5+
public static BufferClosing create() {
6+
return new BufferClosing() {};
7+
}
8+
9+
private BufferClosings() {
10+
// Prevent instantation.
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package rx.util;
2+
3+
public interface BufferOpening {
4+
// Tagging interface for objects which can open buffers.
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package rx.util;
2+
3+
public class BufferOpenings {
4+
5+
public static BufferOpening create() {
6+
return new BufferOpening() {};
7+
}
8+
9+
private BufferOpenings() {
10+
// Prevent instantation.
11+
}
12+
}

0 commit comments

Comments
 (0)