// Path: src/main/java/redis/clients/collections/Ranking.java
// public interface Ranking<T extends Number> {
// 
// 	T getPoints();
// 	
// 	String getName();
// }
// 
// Path: src/main/java/redis/clients/collections/ScoresPoint.java
// public interface ScoresPoint<T extends Number> {
// 
// 	void initialPoint(String name, T value);
// 	
// 	T increment(String field, T value);
// 	
// 	T decrement(String field, T value);
// 	
// 	void remove(String field);
// 
// 	int size();
// 	
// 	List<Ranking<T>> range(long initial, long end);
// 	
// 	List<Ranking<T>> top(int top);
// 	
// 	List<Ranking<T>> last(int top);
// 	
// 	List<Ranking<T>> getRanking();
// }


import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import redis.clients.collections.Ranking;
import redis.clients.collections.ScoresPoint;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Tuple;
package redis.clients.collections.builder;



class ScorePointDouble extends AbstractScoresPoint<Double> implements ScoresPoint<Double> {


	ScorePointDouble(Jedis jedis, String keyWithNameSpace) {
		super(jedis, keyWithNameSpace);
	}

	@Override
	public void initialPoint(String field, Double value) {
		jedis.zadd(keyWithNameSpace, value, field);

	}

	@Override
	public Double increment(String field, Double value) {
		return jedis.zincrby(keyWithNameSpace, value, field);
	}
	@Override
	public Double decrement(String field, Double value) {
		return increment(field, -value);
	}

	@Override
// Path: src/main/java/redis/clients/collections/Ranking.java
// public interface Ranking<T extends Number> {
// 
// 	T getPoints();
// 	
// 	String getName();
// }
// 
// Path: src/main/java/redis/clients/collections/ScoresPoint.java
// public interface ScoresPoint<T extends Number> {
// 
// 	void initialPoint(String name, T value);
// 	
// 	T increment(String field, T value);
// 	
// 	T decrement(String field, T value);
// 	
// 	void remove(String field);
// 
// 	int size();
// 	
// 	List<Ranking<T>> range(long initial, long end);
// 	
// 	List<Ranking<T>> top(int top);
// 	
// 	List<Ranking<T>> last(int top);
// 	
// 	List<Ranking<T>> getRanking();
// }


// Path: src/main/java/redis/clients/collections/builder/ScorePointDouble.java
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import redis.clients.collections.Ranking;
import redis.clients.collections.ScoresPoint;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Tuple;

package redis.clients.collections.builder;



class ScorePointDouble extends AbstractScoresPoint<Double> implements ScoresPoint<Double> {


	ScorePointDouble(Jedis jedis, String keyWithNameSpace) {
		super(jedis, keyWithNameSpace);
	}

	@Override
	public void initialPoint(String field, Double value) {
		jedis.zadd(keyWithNameSpace, value, field);

	}

	@Override
	public Double increment(String field, Double value) {
		return jedis.zincrby(keyWithNameSpace, value, field);
	}
	@Override
	public Double decrement(String field, Double value) {
		return increment(field, -value);
	}

	@Override
	public List<Ranking<Double>> range(long start, long end) {