Interface TypeContainer

All Superinterfaces:
Type
All Known Subinterfaces:
TypeArray, TypeMap, TypeSet

public interface TypeContainer extends Type
Type representing a container.
  • Method Details

    • innerType

      Type innerType()
      Returns the type of data in the container.
      Returns:
      the type of data in the container
    • containerImplementation

      String containerImplementation()
      Returns the java implementation used to instantiate this container.
      Returns:
      the java implementation used to instantiate this container
    • typeNames

      TypeNames typeNames()
      Returns the type names instance.
      Returns:
      the type names instance
    • isContainer

      default boolean isContainer()
      Description copied from interface: Type
      Returns true if this type represents a container, otherwise false.
      Specified by:
      isContainer in interface Type
      Returns:
      true if this type represents a container, otherwise false
    • neededImports

      default Set<String> neededImports()
      Description copied from interface: Type
      Returns the set of imports needed to use this type in a DTO.
      Specified by:
      neededImports in interface Type
      Returns:
      the set of imports needed to use this type in a DTO