| 1 | |
package org.jaudiotagger.tag.id3.valuepair; |
| 2 | |
|
| 3 | |
import org.jaudiotagger.tag.reference.GenreTypes; |
| 4 | |
|
| 5 | |
import java.util.Collections; |
| 6 | |
import java.util.List; |
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
public class V2GenreTypes |
| 14 | |
{ |
| 15 | |
private static V2GenreTypes v2GenresTypes; |
| 16 | |
|
| 17 | |
private V2GenreTypes() |
| 18 | 0 | { |
| 19 | |
|
| 20 | 0 | } |
| 21 | |
|
| 22 | |
public static V2GenreTypes getInstanceOf() |
| 23 | |
{ |
| 24 | 0 | if (v2GenresTypes == null) |
| 25 | |
{ |
| 26 | 0 | v2GenresTypes = new V2GenreTypes(); |
| 27 | |
} |
| 28 | 0 | return v2GenresTypes; |
| 29 | |
} |
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
public List<String> getAlphabeticalValueList() |
| 35 | |
{ |
| 36 | 0 | List<String> genres = GenreTypes.getInstanceOf().getAlphabeticalValueList(); |
| 37 | 0 | genres.add(ID3V2ExtendedGenreTypes.CV.getDescription()); |
| 38 | 0 | genres.add(ID3V2ExtendedGenreTypes.RX.getDescription()); |
| 39 | |
|
| 40 | |
|
| 41 | 0 | Collections.sort(genres); |
| 42 | 0 | return genres; |
| 43 | |
} |
| 44 | |
} |