Andreas Wundsam | 20c73b6 | 2014-01-24 20:03:27 -0800 | [diff] [blame] | 1 | @Override |
| 2 | public String toString() { |
| 3 | StringBuilder b = new StringBuilder("${msg.name}("); |
| 4 | boolean first = true; |
| 5 | for(MatchField<?> field : getMatchFields()) { |
| 6 | if(first) |
| 7 | first = false; |
| 8 | else |
| 9 | b.append(", "); |
| 10 | String name = field.getName(); |
| 11 | b.append(name).append('=').append(this.get(field)); |
| 12 | if(isPartiallyMasked(field)) { |
| 13 | b.append('/').append(this.getMasked(field).getMask()); |
| 14 | } |
| 15 | } |
| 16 | b.append(")"); |
| 17 | return b.toString(); |
| 18 | } |