instanceOf<E extends Enum> static method

EnvManager<E> instanceOf<E extends Enum>()

Typed convenience accessor — returns this cast to EnvManager<E>.

Use when you have access to the concrete enum type.

Implementation

static EnvManager<E> instanceOf<E extends Enum>() {
  if (_instance == null) throw EnvNotInitializedException();
  return _instance! as EnvManager<E>;
}