public EnumT createAndRegister ( String constant ) { EnumT instance = constructor . apply ( constant ) ; knownValues . put ( constant , instance ) ; return instance ; }
Create a new constant and register it in the known values .