Randomaccess is a tag interface that implements the interface to support fast access. General requirements: for (int i = 0, n = list.size (); i This interface is just a tag interface, and it is impossible to force the user to do what is just a hope.
This interface is just a tag interface, and it is impossible to force the user to do what is just a hope.