?? score.java
字號:
package com.easyjf.bbs.business;
import java.util.HashMap;
import java.util.Map;
//關于type的定義:0-10公共活動參得分。發帖pm(0)、回帖rm(1)、點擊click(2)、發表文章pa(3),發表評論ra(5),參與投票vote(6),登錄login,在線時間online
//11-20項目活動參與分:推薦會員introUser(11)、推薦網址introSite(12)、introOther其它推廣(13)、work項目成員(16)、other其它
//21-30其它加分
public class Score {
private String name;
private int value;
private static final Map scores=new HashMap();
private static void init()
{
scores.put("intrUser",new Score("intrUser",10));//介紹用戶
scores.put("intrSite",new Score("intrSite",5));//連接進入
scores.put("intrOther",new Score("intrOther",5));//介紹其它
scores.put("work",new Score("work",5));//工作得分工協作
scores.put("pm",new Score("pm",3));//發表帖子
scores.put("rm",new Score("rm",1));//回復帖子
scores.put("click",new Score("click",1));//點擊數
scores.put("pa",new Score("pa",5));//發表文章
scores.put("ra",new Score("ra",5));//
scores.put("vote",new Score("vote",5));
scores.put("other",new Score("other",5));
scores.put("login",new Score("login",1));
scores.put("online",new Score("online",1));
}
public static Score get(String name)
{
if(scores.isEmpty())init();
return (Score)scores.get(name);
}
public Score()
{
}
public Score(String name,int value)
{
this.name=name;
this.value=value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -