All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.framework.doc.DocumentedEnum Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.framework.doc;

/**
 * This interface is used to allow the enum documentation to be written in one place, and reused in
 * config and APIs.
 * 

* Markdown should be used for formatting the doc. */ public interface DocumentedEnum> { /** * Write a general description of the enum type. Avoid including default value, or * including enum values in the description since this is use-case specific. */ String typeDescription(); /** * Return a description of the enum value. */ String enumValueDescription(); /** * Cast an instance of this interface to a generic enum type. This is valid, because * this interface should only be implemented by enum types. */ @SuppressWarnings("unchecked") default E castToEnum() { return (E) this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy