aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-13 02:44:48 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-13 12:25:00 +0100
commit36af1905dd58acf8e04041986657fd62b1983f4b (patch)
treee0519fce944af7aee7b7790a495c9a63b19666f4 /subprojects/store
parentchore(web): upgrade to Jetty 12.0.0.alpha3 (diff)
downloadrefinery-36af1905dd58acf8e04041986657fd62b1983f4b.tar.gz
refinery-36af1905dd58acf8e04041986657fd62b1983f4b.tar.zst
refinery-36af1905dd58acf8e04041986657fd62b1983f4b.zip
chore(deps): upgrade to yarn canary
Support for typescript@4.9.4 available in yarn 4.0.0-rc.33 according to https://github.com/yarnpkg/berry/pull/5127#issuecomment-1345664949 Also updates other frontend dependencies.
Diffstat (limited to 'subprojects/store')
-rw-r--r--subprojects/store/src/main/java/tools/refinery/store/model/ModelCursor.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/subprojects/store/src/main/java/tools/refinery/store/model/ModelCursor.java b/subprojects/store/src/main/java/tools/refinery/store/model/ModelCursor.java
deleted file mode 100644
index a835cf69..00000000
--- a/subprojects/store/src/main/java/tools/refinery/store/model/ModelCursor.java
+++ /dev/null
@@ -1,25 +0,0 @@
1package tools.refinery.store.model;
2
3import java.util.Map;
4
5import tools.refinery.store.map.Cursor;
6import tools.refinery.store.model.representation.DataRepresentation;
7
8public class ModelCursor {
9 final Map<DataRepresentation<?, ?>,Cursor<?,?>> cursors;
10
11 public ModelCursor(Map<DataRepresentation<?, ?>, Cursor<?, ?>> cursors) {
12 super();
13 this.cursors = cursors;
14 }
15
16 @SuppressWarnings("unchecked")
17 public <K,V> Cursor<K,V> getCursor(DataRepresentation<K, V> representation) {
18 Cursor<?, ?> cursor = cursors.get(representation);
19 if(cursor != null) {
20 return (Cursor<K, V>) cursor;
21 } else {
22 throw new IllegalArgumentException("ModelCursor does not contain cursor for representation "+representation);
23 }
24 }
25}