Module java.base
Package java.lang

# Class Enum

=
public abstract class Enum<E>
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<E>, java.lang.constant.Constable

## Nested Types

- = EnumDesc

## Constructors

- =
  protected Enum(java.lang.String arg0, int arg1)

## Methods

- =
  protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException
- =
  public final int compareTo(E arg0)
- =
  public final java.util.Optional<java.lang.Enum.EnumDesc<E>> describeConstable()
- =
  public final boolean equals(java.lang.Object arg0)
- =
  @Deprecated(since="18"forRemoval=true)
  protected final void finalize()
- =
  public final java.lang.Class<E> getDeclaringClass()
- =
  public final int hashCode()
- =
  public final java.lang.String name()
- =
  public final int ordinal()
- =
  public java.lang.String toString()
- =
  public static <T> T valueOf(java.lang.Class<T> arg0, java.lang.String arg1)

## Serialized Form

=

### serialVersionUID

=7416407127466838376

### Serialized Fields

- =
  int hash
- =
  java.lang.String name
- =
  int ordinal

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void readObjectNoData() throws java.io.ObjectStreamException

## Summary

No differences.