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 anAudioSong
matches 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 boolean
match(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:Matcher
True, if the given object t matches all provided patters (logical AND).- Specified by:
match
in 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.
-
-