Class Enums

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

@Deprecated
@ScheduledApiChange(when="6.0",
                    details="Will be removed.")
public final class Enums
extends java.lang.Object
Deprecated.
Use Java streams, instead.
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)
    Deprecated.
    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)
    Deprecated.
    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)
      Deprecated.
      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)
      Deprecated.
      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.