.get() Method returns a value associated with a key that you pass in the .get() method, not the index.
So because you pass in 0 and not 0L it looks for a Integer key of 0 while you listed Long for a key in your HashMaps generics.