public interface MediaList
The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium "all".
The items in the MediaList are accessible via an integral index, starting from 0.
Modifier and Type | Method and Description |
---|---|
void |
appendMedium(java.lang.String newMedium)
Adds the medium newMedium to the end of the list.
|
void |
deleteMedium(java.lang.String oldMedium)
Deletes the medium indicated by oldMedium from the list.
|
int |
getLength() |
java.lang.String |
getMediaText() |
java.lang.String |
item(int index)
Returns the medium with the given index.
|
void |
setMediaText(java.lang.String mediaText) |
int getLength()
java.lang.String getMediaText()
void setMediaText(java.lang.String mediaText)
mediaText
- The parsable textual representation of the media list.void appendMedium(java.lang.String newMedium)
newMedium
- The medium to add to the end of the listvoid deleteMedium(java.lang.String oldMedium)
oldMedium
- The medium to deletejava.lang.String item(int index)
index
- The index to get the medium for