⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kjavastorage.java

📁 一个免费wap站
💻 JAVA
字号:
package com.eline.wap.resource.model;

import java.util.ArrayList;

public class KJavaStorage {

	private int indexId;
	private int kjavaId;
	private int[] deviceModels;
	private int deviceManufacturer;
	private String jadFile;
	private int fileSize;
	private int accessCount	= 0;
	private String description;

	public boolean isSupportedDeviceModel(int deviceModelId) {
		for (int i = 0; i < deviceModels.length; i ++)
			if (deviceModels[i] == deviceModelId)
				return true;
		return false;
	}
	public void setDeviceModels(String deviceModels) throws Exception {
		if (deviceModels == null)
			throw new NullPointerException("Attempts to use null in setDeviceModels() method");
		String[] strArray = deviceModels.split(";");
		ArrayList coll = new ArrayList();
		for (int i = 0; i < strArray.length; i ++) {
			try {
				if (strArray[i].length() > 0) {
					int number = Integer.parseInt(strArray[i]);
					coll.add(new Integer(number));
				}
			} catch (NumberFormatException e) {	}
		}
		this.deviceModels = new int[coll.size()];
		for (int i = 0; i < coll.size(); i ++) {
			this.deviceModels[i] = ((Integer) coll.get(i)).intValue();
		}
	}

	public String dumpDeviceModels() {
		String output = "";
		for (int i = 0; i < this.deviceModels.length; i ++) {
			if (this.deviceModels[i] > 0)
				output += this.deviceModels[i] + ";";
		}
		return output;
	}
	/**
	 * 
	 * @return
	 */
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int[] getDeviceModels() {
		return deviceModels;
	}
	public void setDeviceModels(int[] deviceModels) {
		this.deviceModels = deviceModels;
	}
	public int getDeviceManufacturer() {
		return deviceManufacturer;
	}
	public void setDeviceManufacturer(int deviceManufacturer) {
		this.deviceManufacturer = deviceManufacturer;
	}
	public int getAccessCount() {
		return accessCount;
	}
	public void setAccessCount(int accessCount) {
		this.accessCount = accessCount;
	}
	public int getFileSize() {
		return fileSize;
	}
	public void setFileSize(int fileSize) {
		this.fileSize = fileSize;
	}
	public int getIndexId() {
		return indexId;
	}
	public void setIndexId(int indexId) {
		this.indexId = indexId;
	}
	public String getJadFile() {
		return jadFile;
	}
	public void setJadFile(String jadFile) {
		this.jadFile = jadFile;
	}
	public int getKjavaId() {
		return kjavaId;
	}
	public void setKjavaId(int kjavaId) {
		this.kjavaId = kjavaId;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -