1 package org.opentrafficsim.base;
2
3 /**
4 * Interface for named types. Classes implementing this interface are expected to have their constants organized as:
5 * <pre>
6 * interface NamedType extends Named
7 * {
8 * public static final NamedType NAME_OF_CONSTANT = new NamedType()
9 * {
10 * public String name() { return "NAME_OF_CONSTANT"; }
11 * };
12 * }
13 * </pre>
14 * <p>
15 * Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.<br>
16 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
17 * @author Wouter Schakel
18 */
19 public interface NamedConstants
20 {
21
22 /**
23 * Returns the name of the value.
24 * @return name of the value
25 */
26 String name();
27
28 }