Skip to content
Permalink
3b99e145f5
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) 551 Bytes
package clustering.ds;
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;
}
}