// Path: src/com/zykmanhua/app/util/MD5Tools.java
// public class MD5Tools {
// 	
// 	public static String hashKeyForDisk(String key) {
// 		String cacheKey;
// 		try {
// 			final MessageDigest mDigest = MessageDigest.getInstance("MD5");
// 			mDigest.update(key.getBytes());
// 			cacheKey = bytesToHexString(mDigest.digest());
// 		} 
// 		catch (NoSuchAlgorithmException e) {
// 			cacheKey = String.valueOf(key.hashCode());
// 		}
// 		
// 		return cacheKey;
// 	}
// 
// 	private static String bytesToHexString(byte[] bytes) {
// 		StringBuilder sb = new StringBuilder();
// 		for (int i = 0; i < bytes.length; i++) {
// 			String hex = Integer.toHexString(0xFF & bytes[i]);
// 			if (hex.length() == 1) {
// 				sb.append('0');
// 			}
// 			sb.append(hex);
// 		}
// 		return sb.toString();
// 	}
// 
// }


import java.util.HashMap;
import java.util.Map;
import com.zykmanhua.app.util.MD5Tools;
package com.zykmanhua.app.bean;



public class GroupCollect {
	
	private Map<String , Manhua> collectHashMap = null;
	
	public GroupCollect() {
		this.collectHashMap = new HashMap<String, Manhua>();
	}
	
	public Map<String, Manhua> getCollectMap() {
		return this.collectHashMap;
	}
	
	public void setCollectMap(Map<String, Manhua> collectHashMap) {
		this.collectHashMap = collectHashMap;
	}
	
	public void addCollect(Manhua collectHashMap) {
		String url = collectHashMap.getmCoverImg();
// Path: src/com/zykmanhua/app/util/MD5Tools.java
// public class MD5Tools {
// 	
// 	public static String hashKeyForDisk(String key) {
// 		String cacheKey;
// 		try {
// 			final MessageDigest mDigest = MessageDigest.getInstance("MD5");
// 			mDigest.update(key.getBytes());
// 			cacheKey = bytesToHexString(mDigest.digest());
// 		} 
// 		catch (NoSuchAlgorithmException e) {
// 			cacheKey = String.valueOf(key.hashCode());
// 		}
// 		
// 		return cacheKey;
// 	}
// 
// 	private static String bytesToHexString(byte[] bytes) {
// 		StringBuilder sb = new StringBuilder();
// 		for (int i = 0; i < bytes.length; i++) {
// 			String hex = Integer.toHexString(0xFF & bytes[i]);
// 			if (hex.length() == 1) {
// 				sb.append('0');
// 			}
// 			sb.append(hex);
// 		}
// 		return sb.toString();
// 	}
// 
// }


// Path: src/com/zykmanhua/app/bean/GroupCollect.java
import java.util.HashMap;
import java.util.Map;
import com.zykmanhua.app.util.MD5Tools;

package com.zykmanhua.app.bean;



public class GroupCollect {
	
	private Map<String , Manhua> collectHashMap = null;
	
	public GroupCollect() {
		this.collectHashMap = new HashMap<String, Manhua>();
	}
	
	public Map<String, Manhua> getCollectMap() {
		return this.collectHashMap;
	}
	
	public void setCollectMap(Map<String, Manhua> collectHashMap) {
		this.collectHashMap = collectHashMap;
	}
	
	public void addCollect(Manhua collectHashMap) {
		String url = collectHashMap.getmCoverImg();
		String key = MD5Tools.hashKeyForDisk(url);