RandomAccess Interface, Why no methods?
问题 I was reading Collections.shuffle(List) javadoc and then took a look at the RandomAccess javadoc: Marker interface used by List implementations to indicate that they support fast (generally constant time) random access. [...] I am wondering why this interface (like Serializable) does not have methods? What is the design reason for this? Even if only Lists "implement" this interface, why not setting E get() as a method? I know that not every list is random access but how can I use this