I have an enum in class file which is in jar file.

public static enum test{
    Test, Test1;
}

Now I want to add an new value to this enum.So How can add new value from my custom class?

有帮助吗?

解决方案

No. Enums are complete static enumeration.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top