made GUI stay in place on db refresh
This commit is contained in:
@@ -5,7 +5,7 @@ import scala.collection.mutable.ArrayBuffer
|
||||
class Album(val name: String) extends Serializable {
|
||||
private var _songs: ArrayBuffer[Song] = new ArrayBuffer()
|
||||
def addSong(song: Song): Unit = _songs.addOne(song)
|
||||
def containsSong(song: Song): Boolean = _songs.contains(song)
|
||||
def containsSong(song: Song): Boolean = _songs.exists(s => s.number == song.number && s.title == song.title)
|
||||
def getSongs(): Array[Song] = _songs.toArray
|
||||
|
||||
def getSongByTitle(title: String): Option[Song] = {
|
||||
|
||||
Reference in New Issue
Block a user