mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 64ee0961: Add toString method to InputPointers and ResizableIntArray
* commit '64ee09610024eb1436c51f9c9ef9fc3f77239d73': Add toString method to InputPointers and ResizableIntArray
This commit is contained in:
commit
5f1c59bb2f
@ -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 + "]";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user