I need to have a fixed size array with the length of 10, consisting of double values as they used as a record so this should have efficient structure.
I wonder if there is any fixed length collection in fastutil or simply I can use a double[10] array instead of fastutil?
Array is the way to go. If you must have a fixed size collection you can create one that is backed by array and its size can not be changed :