[android] add #toString override for formatted sections

This commit is contained in:
Łukasz Paczos
2019-03-27 12:41:29 +01:00
committed by Łukasz Paczos
parent 92887cc3f7
commit ccf99cfe7e
2 changed files with 18 additions and 0 deletions

View File

@@ -58,4 +58,12 @@ public class Formatted {
public int hashCode() {
return Arrays.hashCode(formattedSections);
}
@Override
public String toString() {
return "Formatted{"
+ "formattedSections="
+ Arrays.toString(formattedSections)
+ '}';
}
}

View File

@@ -228,4 +228,14 @@ public class FormattedSection {
params.put("text-color", textColor);
return new Object[] {text, params};
}
@Override
public String toString() {
return "FormattedSection{"
+ "text='" + text + '\''
+ ", fontScale=" + fontScale
+ ", fontStack=" + Arrays.toString(fontStack)
+ ", textColor='" + textColor + '\''
+ '}';
}
}