fun <R, W> getRevisionNumber(rev: String?, revTimestamp: String?, manager: ResourceManager<R, W>): Array<Int>
where R : NodeReadOnlyTrx,
R : NodeCursor,
W : NodeTrx,
W : NodeCursor {
jojo.lichtenberger
02/19/2020, 3:03 PM
works, thanks 🙂
jojo.lichtenberger
02/19/2020, 3:05 PM
BTW: If I have a bunch of methods with ResourceManager<R,W> as a parameter, can I make this more clean (less repetitive)? I guess that's the best way, though
t
tseisel
02/19/2020, 4:14 PM
You could write interfaces that extends from both types, so that you can use a shorter syntax :