|
| 1 | +/* |
| 2 | + * Copyright (C) 2004 Felipe Gustavo de Almeida |
| 3 | + * Copyright (C) 2010-2014 The MPDroid Project |
| 4 | + * |
| 5 | + * All Rights Reserved. |
| 6 | + * |
| 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: |
| 9 | + * |
| 10 | + * 1. Redistributions of source code must retain the above copyright |
| 11 | + * notice,this list of conditions and the following disclaimer. |
| 12 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 13 | + * notice, this list of conditions and the following disclaimer in the |
| 14 | + * documentation and/or other materials provided with the distribution. |
| 15 | + * |
| 16 | + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 17 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 18 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 19 | + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY |
| 20 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 21 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 22 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 23 | + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 25 | + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | + */ |
| 27 | + |
| 28 | +package org.a0z.mpd.item; |
| 29 | + |
| 30 | +/** |
| 31 | + * This is the Java backend {@code Album} item. |
| 32 | + * |
| 33 | + * @see org.a0z.mpd.item.AbstractAlbum For generic {@code Album} code. |
| 34 | + */ |
| 35 | +public class Album extends AbstractAlbum { |
| 36 | + |
| 37 | + public Album(final Album otherAlbum) { |
| 38 | + super(otherAlbum); |
| 39 | + } |
| 40 | + |
| 41 | + public Album(final String name, final Artist artist) { |
| 42 | + super(name, artist, false, 0L, 0L, 0L, null); |
| 43 | + } |
| 44 | + |
| 45 | + public Album(final String name, final Artist artist, final boolean hasAlbumArtist) { |
| 46 | + super(name, artist, hasAlbumArtist, 0L, 0L, 0L, null); |
| 47 | + } |
| 48 | + |
| 49 | + public Album(final String name, final Artist artist, final boolean hasAlbumArtist, |
| 50 | + final long songCount, final long duration, |
| 51 | + final long year, final String path) { |
| 52 | + super(name, artist, hasAlbumArtist, songCount, duration, year, path); |
| 53 | + } |
| 54 | +} |
0 commit comments