Back to project page you2peer.
The source code is released under:
Apache License
If you think the Android project you2peer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.u2p.core.db; /*from www . jav a2s.c o m*/ public class DbFile { private long id; private String group; private String name; private String uri; private int positive,negative; private String type; public DbFile(String name, String uri,int positive,int negative) { super(); setName(name); setUri(uri); setPositive(positive); setNegative(negative); setType(createType()); } private String createType() { String name = getName(); String[] strs = name.split("\\."); return strs[strs.length-1]; } public int getPositive() { return positive; } public void setPositive(int positive) { this.positive = positive; } public int getNegative() { return negative; } public void setNegative(int negative) { this.negative = negative; } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getGroup() { return group; } public void setGroup(String group) { this.group = group; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } @Override public String toString() { return "BdFile [id=" + id + ", name=" + name+ ", uri=" + uri + "]"; } public String getType() { return type; } public void setType(String type) { this.type = type; } }