Skip to content
Permalink
0d82ff1dc4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
40 lines (30 sloc) 568 Bytes
package kb.howtokb.clustering.basicobj;
public class Instance<T> implements BasicDataPt{
private int id;
private T frame;
public Instance(int id, T frame) {
this.id = id;
this.frame = frame;
}
public Instance(Instance<T> tmp) {
this.id = tmp.getID();
this.frame = tmp.getData();
}
public Instance() {
this.id = -1;
this.frame = null;
}
public void setId(int id) {
this.id = id;
}
public void setFrame(T frame) {
this.frame = frame;
}
@Override
public int getID() {
return id;
}
public T getData(){
return frame;
}
}