Back to project page FriendScore.
The source code is released under:
MIT License
If you think the Android project FriendScore listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.prnk.friendscore; /*www.j a v a 2 s . co m*/ public class ScoreObject { private long id; private int score; private final int defaultScore = 0; public ScoreObject() { this.score = defaultScore; } public int Score() { return this.score; } public long GetId(){ return this.id; } public void SetId(long identifier){ this.id = identifier; } public void IncrementScore() { this.score++; } public void SetScore(int score) { this.score = score; } public void DecrementScore() { this.score--; } public void ResetScore() { this.score = defaultScore; } }