public final class Templates { public static class NewDeviceDetailsConsts { public static final String AAA = "aaaa"; public static final String BBB = "bbbb"; public static final String CCC = "cccc"; } } for using AAA, I have to write Templates.NewDeviceDetailsConsts.AAA and thats a long string to use 10-20 times in every class I use it.
Will it be efficient to use it like, I define a field in classes I need it , Templates.NewDeviceDetailsConsts DeviceConst; and use DeviceConst.___ in the class. Is it fine or can I do it better than that.
enuminstead?