Why do I keep getting an UnsupportedOperationException thrown when I try some collection operations?
Location: http://www.jguru.com/faq/view.jsp?EID=1317796 Created: Oct 31, 2006 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Several methods of the collection interfaces are considered optional. If an unsupported operation is called, that is when you’ll see the UnsupportedOperationException thrown. The javadoc for a collection implementation should document which methods are optional.
Related Questions
- Why don you support immutability directly in the core collection interfaces so that you can do away with optional operations (and UnsupportedOperationException)?
- Why do I keep getting an UnsupportedOperationException thrown when I try some collection operations?
- How do I know which operations were successful after running a collection operation?