Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 1 | package {package_name}; |
| 2 | |
| 3 | public final class Flags \{ |
MÃ¥rten Kongstad | a2e152a | 2023-06-19 16:11:33 +0200 | [diff] [blame] | 4 | {{- for item in class_elements}} |
| 5 | public static final String FLAG_{item.flag_name_constant_suffix} = "{item.device_config_flag}"; |
| 6 | {{- endfor }} |
Zhi Dou | 4655c96 | 2023-06-12 15:56:03 +0000 | [diff] [blame] | 7 | {{ for item in class_elements}} |
| 8 | public static boolean {item.method_name}() \{ |
| 9 | return FEATURE_FLAGS.{item.method_name}(); |
| 10 | } |
| 11 | {{ endfor }} |
| 12 | private static FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl(); |
| 13 | |
| 14 | } |