Skip to content

Commit 9aa4024

Browse files
committed
Allowing custom ReadCollectors
1 parent 09e5ce0 commit 9aa4024

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gpclient/gpclient-core/src/main/java/org/epics/gpclient/ReadCollector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public O get() {
3737
*
3838
* @param type the type of values collected; can't be null
3939
*/
40-
ReadCollector(Class<I> type) {
40+
protected ReadCollector(Class<I> type) {
4141
if (type == null) {
4242
throw new NullPointerException("Type can't be null");
4343
}
@@ -71,7 +71,7 @@ Supplier<O> getReadFunction() {
7171
*
7272
* @return the new value
7373
*/
74-
abstract O getValue();
74+
protected abstract O getValue();
7575

7676
/**
7777
* The current connection state.

0 commit comments

Comments
 (0)