I have a list of objects, one of them is appended dynamically upstream and then passed in an array list. I need to fetch out this key (it looks like this: status_block_EPOCH
) but when I try to filter I get undefined. I am trying something like this:
blockValues.keySet().stream().filter(s -> s.startsWith("status_block")
That should give me the key that matches this (i.e. status_block_123646484568
) that I can use but I cant get it to work for some reason. What am I doing wrong here?