View Javadoc
1   package org.oxerr.spring.cache.redis.scored;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Score holder.
7    */
8   public interface ScoreHolder extends Serializable {
9   
10  	/**
11  	 * Returns the score.
12  	 *
13  	 * @return the score, may be {@literal null}.
14  	 */
15  	Double get();
16  
17  	/**
18  	 * Set the score.
19  	 *
20  	 * @param score the score, may be {@literal null}.
21  	 */
22  	void set(Double score);
23  
24  	/**
25  	 * Remove the score.
26  	 */
27  	void remove();
28  
29  }