Menu

#46 Varargs (since Java 5)

Enhancement
open
nobody
5
2017-12-27
2017-12-27
Rijk
No

Because many structures in jMusic are array-based, using varargs will be compatible with much of the current code-base and still simplify using the API. E.g. Phrase.addNoteList:
public void addNoteList(Note... notes) {
for(Note note : notes) {
this.addNote(note);
}
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB