Skip to content
Snippets Groups Projects
Commit 64ee0961 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Add toString method to InputPointers and ResizableIntArray

Change-Id: I835ee131855bef8233cf2672e2fb288b939148a6
parent 922a8573
No related branches found
No related tags found
No related merge requests found
......@@ -124,4 +124,10 @@ public class InputPointers {
public int[] getTimes() {
return mTimes.getPrimitiveArray();
}
@Override
public String toString() {
return "size=" + getPointerSize() + " id=" + mPointerIds + " time=" + mTimes
+ " x=" + mXCoordinates + " y=" + mYCoordinates;
}
}
......@@ -131,4 +131,16 @@ public class ResizableIntArray {
mLength = endPos;
}
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
for (int i = 0; i < mLength; i++) {
if (i != 0) {
sb.append(",");
}
sb.append(mArray[i]);
}
return "[" + sb + "]";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment