У вас есть map<String, Object> myMap
.
Учитывая выражение "some.string.*"
, я должен получить все значения из myMap
, ключи которого начинаются с этого выражения.
Я стараюсь избегать for loop
, потому что myMap
будет задан набор выражений не только один, но и с использованием for loop
для каждого выражения становится громоздкой по производительности.
Каков самый быстрый способ сделать это?