Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.seamfix.topriddy.valthemes;
- /**
- *
- * @author temitopefaro
- */
- public class Statistics {
- private long pageHits;
- private long bbDownloadHits;
- private long pcDownloadHits;
- public Statistics(){
- }
- public long getBbDownloadHits() {
- return bbDownloadHits;
- }
- public void setBbDownloadHits(long bbDownloadHits) {
- this.bbDownloadHits = bbDownloadHits;
- }
- public long getPageHits() {
- return pageHits;
- }
- public void setPageHits(long pageHits) {
- this.pageHits = pageHits;
- }
- public long getPcDownloadHits() {
- return pcDownloadHits;
- }
- public void setPcDownloadHits(long pcDownloadHits) {
- this.pcDownloadHits = pcDownloadHits;
- }
- public synchronized void incrementPageHits(){
- pageHits++;
- }
- public synchronized void incrementBBDownloadHits(){
- bbDownloadHits++;
- }
- public synchronized void incrementPCDownloadHits(){
- pcDownloadHits++;
- }
- public synchronized long getTotalDownloadHits(){
- return pcDownloadHits + bbDownloadHits;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement