BrightSide Workbench Full Report + Source Code
VoteItInfo.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2013 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.voteit;
20 
25 public class VoteItInfo {
26 
27  private String path;
28  private long positive, negative, nocare;
29  private MyVote myVote;
30 
31  public String getPath() {
32  return path;
33  }
34 
35  public void setPath(String path) {
36  this.path = path;
37  }
38 
39  public long getPositive() {
40  return positive;
41  }
42 
43  public void setPositive(long positive) {
44  this.positive = positive;
45  }
46 
47  public long getNegative() {
48  return negative;
49  }
50 
51  public void setNegative(long negative) {
52  this.negative = negative;
53  }
54 
55  public long getNocare() {
56  return nocare;
57  }
58 
59  public void setNocare(long nocare) {
60  this.nocare = nocare;
61  }
62 
63  public MyVote getMyVote() {
64  return myVote;
65  }
66 
67  public void setMyVote(MyVote myVote) {
68  this.myVote = myVote;
69  }
70 
71  public long getVotes() {
72  return positive - negative;
73  }
74 
75  public long getTotalVotes() {
76  return positive + nocare + negative;
77  }
78 
79 }
void setNocare(long nocare)
Definition: VoteItInfo.java:59
void setMyVote(MyVote myVote)
Definition: VoteItInfo.java:67
void setNegative(long negative)
Definition: VoteItInfo.java:51
void setPositive(long positive)
Definition: VoteItInfo.java:43
void setPath(String path)
Definition: VoteItInfo.java:35