Add toString method to InputPointers and ResizableIntArray
Change-Id: I835ee131855bef8233cf2672e2fb288b939148a6
This commit is contained in:
parent
922a85734d
commit
64ee096100
2 changed files with 18 additions and 0 deletions
|
@ -124,4 +124,10 @@ public class InputPointers {
|
||||||
public int[] getTimes() {
|
public int[] getTimes() {
|
||||||
return mTimes.getPrimitiveArray();
|
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;
|
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 + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue