Examples of decrementStickyCounter()


Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

          if (news.getState() == INews.State.NEW)
            counter.decrementNewCounter();
          if (ModelUtils.isUnread(news.getState()))
            counter.decrementUnreadCounter();
          if (news.isFlagged())
            counter.decrementStickyCounter();
        }
      }
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        else if (!oldStateNew && currentStateNew)
          counter.incrementNewCounter();

        /* News became unsticky */
        if (oldStateSticky && !newStateSticky)
          counter.decrementStickyCounter();

        /* News became sticky */
        else if (!oldStateSticky && newStateSticky)
          counter.incrementStickyCounter();
      }
View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

          if (news.getState() == INews.State.NEW)
            counter.decrementNewCounter();
          if (ModelUtils.isUnread(news.getState()))
            counter.decrementUnreadCounter();
          if (news.isFlagged())
            counter.decrementStickyCounter();
        }
      }
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        else if (!oldStateNew && currentStateNew)
          counter.incrementNewCounter();

        /* News became unsticky */
        if (oldStateSticky && !newStateSticky)
          counter.decrementStickyCounter();

        /* News became sticky */
        else if (!oldStateSticky && newStateSticky)
          counter.incrementStickyCounter();
      }
View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        else if (!oldStateNew && currentStateNew)
          counterItem.incrementNewCounter();

        /* News became unsticky */
        if (oldStateSticky && !newStateSticky)
          counterItem.decrementStickyCounter();

        /* News became sticky */
        else if (!oldStateSticky && newStateSticky)
          counterItem.incrementStickyCounter();

View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        if (news.getState() == INews.State.NEW)
          counterItem.decrementNewCounter();
        if (isUnread(news.getState()))
          counterItem.decrementUnreadCounter();
        if (news.isFlagged() && (!EnumSet.of(INews.State.DELETED, INews.State.HIDDEN).contains(news.getState())))
          counterItem.decrementStickyCounter();

        updatedCounterItems.put(news.getFeedLinkAsText(), counterItem);
      }
      for (NewsCounterItem counterItem : updatedCounterItems.values())
        fDb.store(counterItem);
View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        else if (!oldStateNew && currentStateNew)
          counterItem.incrementNewCounter();

        /* News became unsticky */
        if (oldStateSticky && !newStateSticky)
          counterItem.decrementStickyCounter();

        /* News became sticky */
        else if (!oldStateSticky && newStateSticky)
          counterItem.incrementStickyCounter();

View Full Code Here

Examples of org.rssowl.core.persist.NewsCounterItem.decrementStickyCounter()

        if (news.getState() == INews.State.NEW)
          counterItem.decrementNewCounter();
        if (isUnread(news.getState()))
          counterItem.decrementUnreadCounter();
        if (news.isFlagged() && (!EnumSet.of(INews.State.DELETED, INews.State.HIDDEN).contains(news.getState())))
          counterItem.decrementStickyCounter();

        updatedCounterItems.put(news.getFeedLinkAsText(), counterItem);
      }

      for (NewsCounterItem counterItem : updatedCounterItems.values())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.