Any way to force classes to have public static final field in Java?
Posted
by serg555
on Stack Overflow
See other posts from Stack Overflow
or by serg555
Published on 2010-03-17T16:41:53Z
Indexed on
2010/03/17
16:51 UTC
Read the original article
Hit count: 180
Is there a way to force classes in Java to have public static final field (through interface or abstract class)? Or at least just a public field?
I need to make sure somehow that a group of classes have
public static final String TYPE = "...";
in them.
© Stack Overflow or respective owner