首页>代码>java数据结构之红黑树实现hashMap源码>/hashMap/src/com/mjy/file/FileInfo.java
package com.mjy.file;

public class FileInfo {
	private int lines;
	private int files;
	private String content = "";
	
	public String[] words() {
		return content.split("[^a-zA-Z]+");
	}
	
	public int getFiles() {
		return files;
	}

	public void setFiles(int files) {
		this.files = files;
	}

	public int getLines() {
		return lines;
	}
	
	public void setLines(int lines) {
		this.lines = lines;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public FileInfo append(FileInfo info) {
		if (info != null && info.lines > 0) {
			this.files += info.files;
			this.lines += info.lines;
			this.content = new StringBuilder(this.content)
					.append("\n")
					.append(info.content)
					.toString();
		}
		return this;
	}
}
最近下载更多
matintalorr  LV10 2021年8月31日
17600446733  LV21 2020年6月23日
2650343087  LV6 2020年5月26日
wyyxhzzp  LV1 2020年2月18日
宇1314520乔  LV1 2020年1月31日
dajian  LV1 2020年1月18日
最代码官方  LV167 2020年1月16日
最近浏览更多
3334004690  LV3 3月6日
如果不曾相遇  LV3 2023年5月6日
我爱你野狼123 2023年3月22日
暂无贡献等级
woaini12788  LV7 2022年1月17日
ooooops 2022年1月11日
暂无贡献等级
luozf1990  LV3 2022年1月4日
matintalorr  LV10 2021年8月31日
絮落无痕  LV13 2021年4月21日
孤独の王者  LV6 2021年4月17日
蹦迪的小熊  LV4 2021年4月8日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友