[android] add #toString override for formatted sections
This commit is contained in:
committed by
Łukasz Paczos
parent
92887cc3f7
commit
ccf99cfe7e
@@ -58,4 +58,12 @@ public class Formatted {
|
||||
public int hashCode() {
|
||||
return Arrays.hashCode(formattedSections);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Formatted{"
|
||||
+ "formattedSections="
|
||||
+ Arrays.toString(formattedSections)
|
||||
+ '}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 + '\''
|
||||
+ '}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user