Changes between Initial Version and Version 1 of Ticket #16796, comment 28
- Timestamp:
- 2019-10-13T17:31:20+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16796, comment 28
initial v1 3 3 * You can move those constants to an utility class (only static fields, no constructor), then use a private factory method: 4 4 {{{ 5 #!java 5 6 public final class GpxConstants { 6 7 public static final Map<...> GARMIN_COLORS = generateGarminColors(); … … 14 15 * You can have a static method in your interface 15 16 {{{ 17 #!java 16 18 public interface GpxConstants { 17 19 static final Map<...> GARMIN_COLORS = generateGarminColors();