|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.collection.CollectionUtils
public final class CollectionUtils
Various collection utility methods.
Nested Class Summary | |
---|---|
protected static class |
CollectionUtils.AlbumOrderComparator
Orders the tracks by albums, track number and finally by displayable name. |
Field Summary | |
---|---|
static Comparator<TrackMetadataBean> |
ALBUM_ORDER_COMPARATOR
Orders the tracks by albums, track number and finally by filenames. |
Method Summary | |
---|---|
static void |
sortByAlbumOrder(List<TrackMetadataBean> playlist)
Sorts the tracks by albums, track number and finally by filenames. |
static void |
sortByName(List<CategoryItem> items)
Sorts given category item list by CategoryItem.name . |
static void |
sortByTitle(List<TrackMetadataBean> tracks)
Sorts given track list by TrackMetadataBean.getDisplayableName() . |
static void |
sortByYearName(List<CategoryItem> items)
Sorts given category item list by CategoryItem.name . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Comparator<TrackMetadataBean> ALBUM_ORDER_COMPARATOR
Method Detail |
---|
public static void sortByName(List<CategoryItem> items)
CategoryItem.name
.
items
- the items to sort.public static void sortByYearName(List<CategoryItem> items)
CategoryItem.name
.
items
- the items to sort.public static void sortByTitle(List<TrackMetadataBean> tracks)
TrackMetadataBean.getDisplayableName()
.
tracks
- the tracks to sort.public static void sortByAlbumOrder(List<TrackMetadataBean> playlist)
playlist
- the playlist to sort.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |