forked from plusone/plusone-commons
重写 toString 方法。
parent
45a0407a1d
commit
7e467afc4d
|
@ -78,4 +78,9 @@ public class DbRecord extends AbstractMapWrapper<String, Object, DbRecord> {
|
||||||
protected DbRecord getSelf() {
|
protected DbRecord getSelf() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "xyz.zhouxy.plusone.commons.jdbc.DbRecord@" + super.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,11 @@ public abstract class AbstractMapWrapper<K, V, T extends AbstractMapWrapper<K, V
|
||||||
|
|
||||||
protected abstract T getSelf();
|
protected abstract T getSelf();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return this.map.toString();
|
||||||
|
}
|
||||||
|
|
||||||
protected abstract static class Builder<K, V> {
|
protected abstract static class Builder<K, V> {
|
||||||
protected final Map<K, V> map;
|
protected final Map<K, V> map;
|
||||||
protected Consumer<K> keyChecker;
|
protected Consumer<K> keyChecker;
|
||||||
|
|
Loading…
Reference in New Issue