Package com.tagtraum.beatunes
Class SongFilters.IdFilter
- java.lang.Object
-
- com.tagtraum.beatunes.SongFilters.IdFilter
-
- All Implemented Interfaces:
SongFilter
,Serializable
,Predicate<AudioSong>
- Enclosing class:
- SongFilters
public static class SongFilters.IdFilter extends Object implements SongFilter
Filter that matches specific song ids.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdFilter(Collection<Long> ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<Long>
getIds()
int
hashCode()
boolean
test(AudioSong song)
String
toExpression()
Represent this filter as some sort of expression, e.g.
-
-
-
Constructor Detail
-
IdFilter
public IdFilter(Collection<Long> ids)
-
-
Method Detail
-
toExpression
public String toExpression()
Description copied from interface:SongFilter
Represent this filter as some sort of expression, e.g. a database
WHERE
clause.By default a string is returned.
- Specified by:
toExpression
in interfaceSongFilter
- Returns:
- expression
-
-