fix(container): add factory getters
All checks were successful
Build / Gradle-Build (push) Successful in 11s
Publish / Gradle-Publish (push) Successful in 11s
Test / Gradle-Test (push) Successful in 14s

This commit is contained in:
tueem 2025-04-12 00:01:07 +02:00
parent 535a0dad58
commit 7ec05d4e8a
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB
2 changed files with 8 additions and 0 deletions

View File

@ -55,4 +55,8 @@ public class LoneMethodContainer<I extends Object, C extends Object> implements
return findFor(identifier).stream().findFirst(); return findFor(identifier).stream().findFirst();
} }
public ReflectedMethodFactory<I, C> factory() {
return this.factory;
}
} }

View File

@ -76,6 +76,10 @@ public class MultiMethodContainer<I extends Object, C extends Object> implements
return this.entries; return this.entries;
} }
public ReflectedMethodFactory<I, C> factory() {
return this.factory;
}
public static record Entry<I extends Object, C extends Object>(I identifier, Set<ReflectedMethod<I, C>> methods) { public static record Entry<I extends Object, C extends Object>(I identifier, Set<ReflectedMethod<I, C>> methods) {
public Entry(I identifier) { public Entry(I identifier) {