News

An enumerated type specifies a set of related constants as its values. Examples include ... in a typesafe enum. After all, a typesafe enum is essentially a special kind of Java class.
TimeUnit provides an example of one other “often true” principle in Java: highly and generally useful classes (or enum in this case) can often be found in the SDK where you might least expect it.