Skip to content
Snippets Groups Projects
Commit 13be3fc4 authored by Michael Haupt's avatar Michael Haupt
Browse files

remove resetData() functionality in vectors

parent 85ad954a
Branches
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ public class SortFunctions {
for (int i = 0; i < data.length; i++) {
rdata[i] = data[data.length - (i + 1)];
}
result.resetData(rdata);
result = RDataFactory.createIntVector(rdata, RDataFactory.COMPLETE_VECTOR);
}
return result;
}
......
......@@ -207,11 +207,6 @@ public final class RDoubleVector extends RVector implements RAbstractDoubleVecto
return getDataAt(index);
}
public RDoubleVector resetData(double[] newData) {
this.data = newData;
return this;
}
@Override
protected RStringVector getImplicitClassHr() {
return getClassHierarchyHelper(implicitClassHr, implicitClassHrDyn);
......
......@@ -195,11 +195,6 @@ public final class RIntVector extends RVector implements RAbstractIntVector {
return getDataAt(index);
}
public RIntVector resetData(int[] newData) {
this.data = newData;
return this;
}
@Override
protected RStringVector getImplicitClassHr() {
return getClassHierarchyHelper(implicitClassHr, implicitClassHrDyn);
......
......@@ -176,11 +176,6 @@ public final class RLogicalVector extends RVector implements RAbstractLogicalVec
return getDataAt(index);
}
public RLogicalVector resetData(byte[] newData) {
data = newData;
return this;
}
@Override
protected RStringVector getImplicitClassHr() {
return getClassHierarchyHelper(new String[]{RRuntime.TYPE_LOGICAL}, implicitClassHrDyn);
......
......@@ -36,9 +36,8 @@ public interface RAbstractVector extends RAbstractContainer {
/**
* Creates a copy of the vector. This copies all of the contained data as well. If the data in
* the vector is to be updated immediately after copying by means of one of the
* {@code resetData()} methods available in concrete vector classes, the corresponding
* {@code copyResetData()} method should be used instead.
* the vector is to be updated upon copying, the corresponding {@code copyResetData()} method
* should be used.
*/
RAbstractVector copy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment