forked from plusone/plusone-commons
修改 toString 方法。
parent
0b80cf34ba
commit
61bd352fd7
|
@ -59,9 +59,7 @@ public abstract class Enumeration<T extends Enumeration<T>> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
return "[" + value + ": " + name + "]";
|
||||||
builder.append("[").append(value).append(": ").append(name).append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final class EnumerationValuesHolder<T extends Enumeration<T>> {
|
protected static final class EnumerationValuesHolder<T extends Enumeration<T>> {
|
||||||
|
|
Loading…
Reference in New Issue