Interface NamedConstants

All Known Implementing Classes:
StripeElement.StripeLateralSync

public interface NamedConstants
Interface for named types. Classes implementing this interface are expected to have their constants organized as:
 interface NamedType extends Named
 {
     public static final NamedType NAME_OF_CONSTANT = new NamedType()
     {
         public String name() { return "NAME_OF_CONSTANT"; }
     };
 }
 

Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the value.
  • Method Details

    • name

      String name()
      Returns the name of the value.
      Returns:
      name of the value