So I have looked around google and SO , I cannot find a example or explanation of : What is the purpose of static final methods in enum?
What I understand :
- Methods declare
staticcan be accessed like function/procedural languages. finalmeans you can't override it. Can't change the reference. As assylias pointed out in commentsstaticcan't be overridden either.enums can't be subclassed, explained here.
So what's the point of static final methods in enums if it will never be overridden since there won't be a subclass?