![]() Note: Great care must be exercised if mutable objects are used as setĮlements. That all constructors must create a set that contains no duplicate elements ![]() The additional stipulation on constructors is, not surprisingly, ![]() Not contain any additional stipulations.) (The specifications accompanying theseĭeclarations have been tailored to the Set interface, but they do Declarations for other inherited methods areĪlso included here for convenience. Inherited from the Collection interface, on the contracts of allĬonstructors and on the contracts of the add, equals and The Set interface places additional stipulations, beyond those Its name, this interface models the mathematical set abstraction. ![]() More formally, setsĬontain no pair of elements e1 and e2 such thatĮ1.equals(e2), and at most one null element. A collection that contains no duplicate elements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |