Enum Class JavaUtil

java.lang.Object
java.lang.Enum<JavaUtil>
dk.mada.jaxrs.generator.mpclient.imports.JavaUtil
All Implemented Interfaces:
TypedImport, Serializable, Comparable<JavaUtil>, Constable

public enum JavaUtil extends Enum<JavaUtil> implements TypedImport
Java util import paths.
  • Enum Constant Details

    • ARRAY_LIST

      public static final JavaUtil ARRAY_LIST
      ArrayList.
    • ARRAYS

      public static final JavaUtil ARRAYS
      Arrays.
    • HASH_MAP

      public static final JavaUtil HASH_MAP
      HashMap.
    • LINKED_HASH_SET

      public static final JavaUtil LINKED_HASH_SET
      LinkedHashSet.
    • LIST

      public static final JavaUtil LIST
      List.
    • MAP

      public static final JavaUtil MAP
      Map.
    • OBJECTS

      public static final JavaUtil OBJECTS
      Objects.
    • SET

      public static final JavaUtil SET
      Set.
  • Method Details

    • values

      public static JavaUtil[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JavaUtil valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • containerImplementationTypes

      public static Set<JavaUtil> containerImplementationTypes()
      Returns the container implementation types.
      Returns:
      the container implementation types
    • containerListTypes

      public static Set<JavaUtil> containerListTypes()
      Returns the container list-types.
      Returns:
      the container list-types
    • containerMapTypes

      public static Set<JavaUtil> containerMapTypes()
      Returns the container map-types.
      Returns:
      the container map-types
    • containerSetTypes

      public static Set<JavaUtil> containerSetTypes()
      Returns the container set-types.
      Returns:
      the container set-types
    • path

      public Optional<String> path(dk.mada.jaxrs.generator.mpclient.imports.Imports.ImportRenderPrefs irp)
      Description copied from interface: TypedImport
      Returns the import path suitable for the import type, or null if not applicable.
      Specified by:
      path in interface TypedImport
      Parameters:
      irp - the import rendering preferences
      Returns:
      the import path suitable for the import type, or null if not applicable
    • path

      public String path()
      Returns the import path regardless of rendering preferences.
      Returns:
      the import path regardless of rendering preferences