Rework states, fixed children, and storage logic [stage]

This commit is contained in:
crschnick
2023-08-05 10:13:17 +00:00
parent 5c6b98fd14
commit b0881a2909
21 changed files with 229 additions and 118 deletions
@@ -0,0 +1,6 @@
package io.xpipe.core.store;
public interface FixedChildStore extends DataStore {
int getFixedId();
}
@@ -4,5 +4,5 @@ import java.util.Map;
public interface FixedHierarchyStore extends DataStore {
Map<String, DataStore> listChildren() throws Exception;
Map<String, FixedChildStore> listChildren() throws Exception;
}
@@ -0,0 +1,7 @@
package io.xpipe.core.util;
@FunctionalInterface
public interface FailableBiConsumer<T, U, E extends Throwable> {
void accept(T var1, U var2) throws E;
}
@@ -0,0 +1,7 @@
package io.xpipe.core.util;
@FunctionalInterface
public interface FailableConsumer<T, E extends Throwable> {
void accept(T var1) throws E;
}
@@ -0,0 +1,7 @@
package io.xpipe.core.util;
@FunctionalInterface
public interface FailableRunnable<E extends Throwable> {
void run() throws E;
}