Class Collection
java.lang.Object
org.episteme.social.arts.Collection
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Represents a collection of artworks, typically held by a museum, gallery,
or private collector.
* @version 2.0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArtwork(Artwork artwork) booleanfindByName(String artworkName) Finds an artwork in this collection by its exact name.Returns an unmodifiable set of artworks in this collection.getId()Returns the unique identifier of this entity.getName()Returns the traits map for this entity.voidremoveArtwork(Artwork artwork) voidSets a new name for the collection.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getTrait, setTrait
-
Constructor Details
-
Collection
Creates a new Collection with a given name.- Parameters:
name- common name of the collection
-
Collection
public Collection()
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getName
- Specified by:
getNamein interfaceComprehensiveIdentification- Specified by:
getNamein interfaceNamed
-
setName
Sets a new name for the collection.- Specified by:
setNamein interfaceComprehensiveIdentification- Parameters:
name- the new name
-
getArtworks
-
addArtwork
-
removeArtwork
-
contains
-
findByName
-