@Deprecated public abstract class Enumeration<T extends Enumeration<T>> extends Object implements Comparable<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Enumeration.ValueSet<T extends Enumeration<T>>
Deprecated.
枚举值集合
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
id
Deprecated.
|
protected String |
name
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Enumeration(int id,
String name)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(T o)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
getId()
Deprecated.
枚举整数码值
|
String |
getName()
Deprecated.
枚举名称
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
protected final int id
protected final String name
protected Enumeration(int id,
String name)
public final int getId()
public final String getName()
public final int compareTo(T o)
compareTo in interface Comparable<T extends Enumeration<T>>Copyright © 2026. All rights reserved.