ジェイ:
私は、パラメータをとらない方法は、その後、bは文字列のリストである方法であることをマップ(A、B)を返したいです
安っぽく:
@ donquih0teの答えから拡大、あなたの鍵がサプライヤーにあるものは何でものマップを使用することができます。
Map<Object, Supplier<List<String>>> map = new HashMap<>();
map.put("foo", () -> List.of("bar"));
Supplier<List<String>> = map.get("foo");
List<String> result = supplier.get();
System.out.println(result);