Changes between Initial Version and Version 1 of Ticket #16796, comment 28


Ignore:
Timestamp:
2019-10-13T17:31:20+02:00 (5 years ago)
Author:
Don-vip

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16796, comment 28

    initial v1  
    33* You can move those constants to an utility class (only static fields, no constructor), then use a private factory method:
    44{{{
     5#!java
    56public final class GpxConstants {
    67  public static final Map<...> GARMIN_COLORS = generateGarminColors();
     
    1415* You can have a static method in your interface
    1516{{{
     17#!java
    1618public interface GpxConstants {
    1719  static final Map<...> GARMIN_COLORS = generateGarminColors();