Skip to content

Instantly share code, notes, and snippets.

@reciprocum
Created April 25, 2016 07:44
Show Gist options
  • Save reciprocum/974bffaad0090505cc9de1daa3573b59 to your computer and use it in GitHub Desktop.
Save reciprocum/974bffaad0090505cc9de1daa3573b59 to your computer and use it in GitHub Desktop.
public static <T extends Track>
List<String>
getTrackNamesSortedAlphabeticaly( final Iterable<T> trks
, final Units units
, List<T> trksSorted // Optional output parameter
)
{
return NamedUtils
.getNamesSortedDecorated( trks
, TrackComparator.NAME // Sort by ascending track name.
, null // No decorators
, trksSorted
) ;
}
public static <T extends Track>
List<String>
getTrackNamesSortedAlphabeticaly__LengthTypeArity( final Iterable<T> trks
, final Units units
, List<T> trksSorted // Optional output parameter
)
{
return NamedUtils
.getNamesSortedDecorated( trks
, TrackComparator.NAME // Sort by ascending track name.
, new TrackDecorator_LengthTypeArity( units ) // Decorate with (length, type) info
, trksSorted
) ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment