Interface Track
-
- All Superinterfaces:
it.tidalwave.util.As
,Dumpable
,Entity
,it.tidalwave.role.Identifiable
,SourceAware
public interface Track extends Entity, SourceAware, it.tidalwave.role.Identifiable
Represents an audio track in a record. Maps the homonymous concept from the Music Ontology. NOTE: a Track is an abstract concept - it is associated to MediaItems (as AudioFiles), but it's not a MediaItem.- Author:
- Fabrizio Giudici
- Stereotype:
- Datum
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
getDiskCount()
ARecord
property that it's handy to have here.java.util.Optional<java.lang.Integer>
getDiskNumber()
ARecord
property that it's handy to have here.java.util.Optional<java.time.Duration>
getDuration()
The duration of this trackMediaItem.Metadata
getMetadata()
Returns theMediaItem.Metadata
.java.util.Optional<Performance>
getPerformance()
Returns thePerformance
that this track is a recording of.java.util.Optional<Record>
getRecord()
Returns theRecord
that contains this trackjava.util.Optional<java.lang.Integer>
getTrackNumber()
The position of this track in the containing record-
Methods inherited from interface it.tidalwave.bluemarine2.util.Dumpable
toDumpString
-
Methods inherited from interface it.tidalwave.bluemarine2.model.spi.SourceAware
getSource
-
-
-
-
Field Detail
-
_Track_
static final java.lang.Class<Track> _Track_
-
-
Method Detail
-
getDiskNumber
@Nonnull java.util.Optional<java.lang.Integer> getDiskNumber()
ARecord
property that it's handy to have here. SeeRecord.getDiskNumber()
.- Returns:
- the disk number
- See Also:
Record.getDiskNumber()
-
getDiskCount
@Nonnull java.util.Optional<java.lang.Integer> getDiskCount()
ARecord
property that it's handy to have here. SeeRecord.getDiskCount()
.- Returns:
- the disk count
- See Also:
Record.getDiskCount()
-
getTrackNumber
@Nonnull java.util.Optional<java.lang.Integer> getTrackNumber()
The position of this track in the containing record- Returns:
- the track position
-
getDuration
@Nonnull java.util.Optional<java.time.Duration> getDuration()
The duration of this track- Returns:
- the duration
-
getMetadata
@Nonnull MediaItem.Metadata getMetadata()
Returns theMediaItem.Metadata
.- Returns:
- the metadata
-
getRecord
@Nonnull java.util.Optional<Record> getRecord()
Returns theRecord
that contains this track- Returns:
- the record
-
getPerformance
@Nonnull java.util.Optional<Performance> getPerformance()
Returns thePerformance
that this track is a recording of.- Returns:
- the performance
-
-