Restrict fluent api models to same type access

This commit is contained in:
Benjamin Muskalla
2021-10-26 16:28:27 +02:00
parent 8564c9001a
commit 747ab122c3
2 changed files with 7 additions and 1 deletions

View File

@@ -6,4 +6,10 @@ public final class FluentAPI {
return this;
}
public class Inner {
public FluentAPI notThis(String input) {
return FluentAPI.this;
}
}
}