Collection
Basic concrete implementation of a MusifyCollection.
Classes:
|
A basic implementation of MusifyCollection for storing |
- class musify.libraries.collection.BasicCollection(name, items)
Bases:
MusifyCollection
,Generic
A basic implementation of MusifyCollection for storing
items
with a givenname
.- Parameters:
name (str) – The name of this collection.
items (Collection[T]) – The items in this collection
Attributes:
The name of this collection
The items in this collection
Total duration of all items in this collection in seconds
- property name
The name of this collection
- property items: list[T]
The items in this collection
- property length
Total duration of all items in this collection in seconds