Package com.tagtraum.beatunes
Class SongFilters.OrFilter
- java.lang.Object
-
- com.tagtraum.beatunes.SongFilters.OrFilter
-
- All Implemented Interfaces:
SongFilter
,SongPropertyFilter
,Serializable
,Predicate<AudioSong>
- Enclosing class:
- SongFilters
public static class SongFilters.OrFilter extends Object implements SongPropertyFilter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tagtraum.beatunes.SongPropertyFilter
SongPropertyFilter.PropertyComparator, SongPropertyFilter.PropertyComparatorImpl<T>
-
-
Constructor Summary
Constructors Constructor Description OrFilter(SongPropertyFilter... songPropertyFilters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
SongPropertyFilter[]
getSongPropertyFilters()
Set<SongPropertyFilter>
getSongPropertyFilterSet()
int
hashCode()
boolean
test(AudioSong song)
String
toExpression()
Represent this filter as some sort of expression, e.g.String
toString()
-
-
-
Constructor Detail
-
OrFilter
public OrFilter(SongPropertyFilter... songPropertyFilters)
- Parameters:
songPropertyFilters
- songPropertyFilters
-
-
Method Detail
-
getSongPropertyFilters
public SongPropertyFilter[] getSongPropertyFilters()
-
getSongPropertyFilterSet
public Set<SongPropertyFilter> getSongPropertyFilterSet()
-
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
-
-