Package org.opentcs.util

# Class Enums

java.lang.Object
org.opentcs.util.Enums

    public final class Enums
    extends java.lang.Object

Provides helper methods for working with enums.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `static <E extends java.lang.Enum<?>> java.lang.String[]` | `asStringArray​(java.lang.Class<E> enumClass)` | Returns the String representations of all elements of the given enum class as an array.
  `static java.util.Set<java.lang.String>` | `asStringSet​(java.lang.Class<? extends java.lang.Enum<?>> enumClass)` | Returns the String representations of all elements of the given enum class as a set.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### asStringSet

    public static java.util.Set<java.lang.String> asStringSet​(java.lang.Class<? extends java.lang.Enum<?>> enumClass)
    Returns the String representations of all elements of the given enum class as a set.
    Parameters:
      `enumClass` - The enum class for which to return the String representations.
    Returns:
      The String representations of all elements of the given enum class as a set.

  - ### asStringArray

    public static <E extends java.lang.Enum<?>> java.lang.String[] asStringArray​(java.lang.Class<E> enumClass)
    Returns the String representations of all elements of the given enum class as an array.
    Type Parameters:
      `E` - The enum class's type.
    Parameters:
      `enumClass` - The enum class for which to return the String representations.
    Returns:
      The String representations of all elements of the given enum class as an array.