ImmutableList does not extend List?
问题 When I dig into the gs-collection source for ImmutableList , it does not extends java.util.List . However the class javadoc mentioned that All ImmutableList implementations must implement the java.util.List . Why must ask the implementation to implement java.util.List and not the ImmutableList itself to extend java.util.List ? 回答1: Why doesn't ImmutableList extend List ? ImmutableCollection doesn't extend java.util.Collection (and ImmutableList doesn't extend java.util.List ) because