I'm looking for a class from the Java Collection Framework that would not allow null elements.
Do you know one?
Most Queue implementations (with the notable exception of LinkedList) don't accept null.
Queue
LinkedList
null
EnumSet is a special-purpose Set implementation that doesn't allow null values.
EnumSet
Set
1.4m articles
1.4m replys
5 comments
57.0k users