コード例 #1
0
ファイル: Book.java プロジェクト: royrutto/FBReaderJ
 boolean matches(String pattern) {
   if (myTitle != null && ZLMiscUtil.matchesIgnoreCase(myTitle, pattern)) {
     return true;
   }
   if (mySeriesInfo != null && ZLMiscUtil.matchesIgnoreCase(mySeriesInfo.Name, pattern)) {
     return true;
   }
   if (myAuthors != null) {
     for (Author author : myAuthors) {
       if (ZLMiscUtil.matchesIgnoreCase(author.DisplayName, pattern)) {
         return true;
       }
     }
   }
   if (myTags != null) {
     for (Tag tag : myTags) {
       if (ZLMiscUtil.matchesIgnoreCase(tag.Name, pattern)) {
         return true;
       }
     }
   }
   if (ZLMiscUtil.matchesIgnoreCase(File.getLongName(), pattern)) {
     return true;
   }
   return false;
 }