(E other)
| 22 | } |
| 23 | |
| 24 | public int compareTo(E other) { |
| 25 | if (getDeclaringClass() != other.getDeclaringClass()) { |
| 26 | throw new ClassCastException(); |
| 27 | } |
| 28 | |
| 29 | return ordinal - other.ordinal; |
| 30 | } |
| 31 | |
| 32 | public static <T extends Enum<T>> T valueOf(Class<T> enumType, String name) { |
| 33 | if (name == null) throw new NullPointerException("name"); |
nothing calls this directly
no test coverage detected