Module hw06

Class NoteCollection

java.lang.Object
provided.abcMusic.musicFW.NoteCollection
All Implemented Interfaces:
INote, IPhrase
Direct Known Subclasses:
Chord, Triplet, Tuplet

public abstract class NoteCollection extends Object implements INote
A collection of multiple notes ---------------------------------------------- A collection of Notes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Note[]
    An array of the notes that comprise this collection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NoteCollection​(Note... notes)
    Constructor that takes notes that form this collection
  • Method Summary

    Modifier and Type
    Method
    Description
    Accessor for the array of notes in this collection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface provided.abcMusic.musicFW.IPhrase

    execute
  • Field Details

    • notes

      protected Note[] notes
      An array of the notes that comprise this collection.
  • Constructor Details

    • NoteCollection

      public NoteCollection(Note... notes)
      Constructor that takes notes that form this collection
      Parameters:
      notes - vararg list of the notes in this collection
  • Method Details

    • getNotes

      public Note[] getNotes()
      Accessor for the array of notes in this collection
      Returns:
      the array of notes