|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.smtpserver.junkscore.ComposedJunkScore
public class ComposedJunkScore
Class to compose the two Junkscore Objects
Field Summary |
---|
Fields inherited from interface org.apache.james.smtpserver.junkscore.JunkScore |
---|
JUNK_SCORE, JUNK_SCORE_ATTR, JUNK_SCORE_COMPOSED_ATTR, JUNK_SCORE_SESSION, JUNK_SCORE_SESSION_ATTR |
Constructor Summary | |
---|---|
ComposedJunkScore(JunkScore score1,
JunkScore score2)
Construct Class |
Method Summary | |
---|---|
double |
getCompleteStoredScores()
Return the summary of stored scores |
double |
getStoredScore(java.lang.String key)
Return the score for the given key. |
java.util.Map |
getStoredScores()
Return a copy of the Map which contains the keys with the correspending scores |
double |
resetStoredScores()
Reset the all stored scores in the map. |
double |
setStoredScore(java.lang.String key,
double score)
Throws an UnsuportedOperationException cause its not supported here |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComposedJunkScore(JunkScore score1, JunkScore score2) throws java.lang.IllegalArgumentException
score1
- The JunkScore for the whole sessionscore2
- The JunkScore for the nail
java.lang.IllegalArgumentException
- get thrown if one of the given JunkScore Objects is nullMethod Detail |
---|
public double getCompleteStoredScores()
JunkScore
getCompleteStoredScores
in interface JunkScore
JunkScore.getCompleteStoredScores()
public double getStoredScore(java.lang.String key)
JunkScore
getStoredScore
in interface JunkScore
key
- the key to get the score for
JunkScore.getStoredScore(java.lang.String)
public java.util.Map getStoredScores()
JunkScore
getStoredScores
in interface JunkScore
JunkScore.getStoredScores()
public double resetStoredScores()
JunkScore
resetStoredScores
in interface JunkScore
JunkScore.resetStoredScores()
public double setStoredScore(java.lang.String key, double score)
setStoredScore
in interface JunkScore
key
- the key under which the score should be storedscore
- the store to score
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |