Package com.tagtraum.beatunes.library
Class AudioSongMatcher
- java.lang.Object
-
- com.tagtraum.beatunes.library.AudioSongMatcher
-
- All Implemented Interfaces:
Matcher<AudioSong,PlayList.SubstringFilterProperty>
public final class AudioSongMatcher extends Object implements Matcher<AudioSong,PlayList.SubstringFilterProperty>
Determines whether anAudioSongmatches certain patterns.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static Matcher<AudioSong,PlayList.SubstringFilterProperty>INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(AudioSong audioSong, Pattern[] patterns, PlayList.SubstringFilterProperty searchMode)True, if the given object t matches all provided patters (logical AND).
-
-
-
Field Detail
-
INSTANCE
public static Matcher<AudioSong,PlayList.SubstringFilterProperty> INSTANCE
-
-
Method Detail
-
match
public boolean match(AudioSong audioSong, Pattern[] patterns, PlayList.SubstringFilterProperty searchMode)
Description copied from interface:MatcherTrue, if the given object t matches all provided patters (logical AND).- Specified by:
matchin interfaceMatcher<AudioSong,PlayList.SubstringFilterProperty>- Parameters:
audioSong- object that may match patternspatterns- patternssearchMode- specifies a particular way in which the match should occur- Returns:
- true if the given object matches.
-
-