// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/constant/RedisRDBConstant.java
// public static final byte REDIS_ENCODING_HT = 3; /*
// 
// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/constant/RedisRDBConstant.java
// public static final byte REDIS_RDB_TYPE_SET = 2;
// 
// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/entity/RedisCommandData.java
// public class RedisCommandData {
// 	/**
// 	 * 原始数据
// 	 */
// 	private byte[] data;
// 	/**
// 	 * 转换为字符串后的数据
// 	 */
// 	private String content;
// 
// 	public RedisCommandData(byte[] data) {
// 		super();
// 		this.data = data;
// 		this.content = new String(data);
// 	}
// 
// 	public byte[] getData() {
// 		return data;
// 	}
// 
// 	public void setData(byte[] data) {
// 		this.data = data;
// 	}
// 
// 	public String getContent() {
// 		return content;
// 	}
// 
// 	public void setContent(String content) {
// 		this.content = content;
// 	}
// 
// 	/*
// 	 * @see java.lang.Object#toString()
// 	 */
// 	@Override
// 	public String toString() {
// 		return "RedisCommandData [dataLength=" + data.length + ", content=" + content + "]";
// 	}
// 
// }


import static com.wmz7year.synyed.constant.RedisRDBConstant.REDIS_ENCODING_HT;
import static com.wmz7year.synyed.constant.RedisRDBConstant.REDIS_RDB_TYPE_SET;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.wmz7year.synyed.entity.RedisCommandData;
	 * @see com.wmz7year.synyed.parser.entry.RedisObject#getEncoding()
	 */
	@Override
	public byte getEncoding() {
		return REDIS_ENCODING_HT;
	}

	/*
	 * @see com.wmz7year.synyed.parser.entry.RedisObject#toCommand()
	 */
	@Override
	public String toCommand() {
		StringBuilder result = new StringBuilder();
		for (RedisStringObject redisStringObject : elements) {
			result.append(redisStringObject.toCommand()).append(' ');
		}
		if (result.length() > 0 && result.charAt(result.length()) == ' ') {
			return result.substring(0, result.length() - 1);
		}
		return result.toString();
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "RedisSetObject [elements=" + elements + "]";
	}

// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/constant/RedisRDBConstant.java
// public static final byte REDIS_ENCODING_HT = 3; /*
// 
// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/constant/RedisRDBConstant.java
// public static final byte REDIS_RDB_TYPE_SET = 2;
// 
// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/entity/RedisCommandData.java
// public class RedisCommandData {
// 	/**
// 	 * 原始数据
// 	 */
// 	private byte[] data;
// 	/**
// 	 * 转换为字符串后的数据
// 	 */
// 	private String content;
// 
// 	public RedisCommandData(byte[] data) {
// 		super();
// 		this.data = data;
// 		this.content = new String(data);
// 	}
// 
// 	public byte[] getData() {
// 		return data;
// 	}
// 
// 	public void setData(byte[] data) {
// 		this.data = data;
// 	}
// 
// 	public String getContent() {
// 		return content;
// 	}
// 
// 	public void setContent(String content) {
// 		this.content = content;
// 	}
// 
// 	/*
// 	 * @see java.lang.Object#toString()
// 	 */
// 	@Override
// 	public String toString() {
// 		return "RedisCommandData [dataLength=" + data.length + ", content=" + content + "]";
// 	}
// 
// }


// Path: Redis-Synyed-common/src/main/java/com/wmz7year/synyed/parser/entry/RedisSetObject.java
import static com.wmz7year.synyed.constant.RedisRDBConstant.REDIS_ENCODING_HT;
import static com.wmz7year.synyed.constant.RedisRDBConstant.REDIS_RDB_TYPE_SET;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.wmz7year.synyed.entity.RedisCommandData;

	 * @see com.wmz7year.synyed.parser.entry.RedisObject#getEncoding()
	 */
	@Override
	public byte getEncoding() {
		return REDIS_ENCODING_HT;
	}

	/*
	 * @see com.wmz7year.synyed.parser.entry.RedisObject#toCommand()
	 */
	@Override
	public String toCommand() {
		StringBuilder result = new StringBuilder();
		for (RedisStringObject redisStringObject : elements) {
			result.append(redisStringObject.toCommand()).append(' ');
		}
		if (result.length() > 0 && result.charAt(result.length()) == ' ') {
			return result.substring(0, result.length() - 1);
		}
		return result.toString();
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "RedisSetObject [elements=" + elements + "]";
	}

	public List<RedisCommandData> getElements() {