abstract public class TemplateDetailsItem {
private final Type type;
protected Long id;
- protected Long position;
+ protected long position;
protected TemplateDetailsItem(Type type) {
this.type = type;
public long getPosition() {
return position;
}
- public void setPosition(Long position) {
+ public void setPosition(long position) {
this.position = position;
}
abstract public String getProblem(@NonNull Resources r, int patternGroupCount);
return "grp:" + matchGroup;
return "<null>";
}
+ public boolean isEmpty() {
+ if (literalValue)
+ return value == null || Misc.emptyIsNull(value.toString()) == null;
+
+ return matchGroup > 0;
+ }
}
public static class TYPE {
return result;
}
+ public boolean isEmpty() {
+ return accountName.isEmpty() && accountComment.isEmpty() && amount.isEmpty();
+ }
}
public static class Header extends TemplateDetailsItem {