Package com.commafeed.frontend.model

Examples of com.commafeed.frontend.model.Entry


  }

  public static void removeUnwantedFromSearch(List<Entry> entries, List<FeedEntryKeyword> keywords) {
    Iterator<Entry> it = entries.iterator();
    while (it.hasNext()) {
      Entry entry = it.next();
      boolean keep = true;
      for (FeedEntryKeyword keyword : keywords) {
        String title = Jsoup.parse(entry.getTitle()).text();
        String content = Jsoup.parse(entry.getContent()).text();
        boolean condition = !StringUtils.containsIgnoreCase(content, keyword.getKeyword())
            && !StringUtils.containsIgnoreCase(title, keyword.getKeyword());
        if (keyword.getMode() == Mode.EXCLUDE) {
          condition = !condition;
        }
View Full Code Here

TOP

Related Classes of com.commafeed.frontend.model.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.