Interface TypeSet

All Superinterfaces:
Type, TypeContainer

@Immutable public interface TypeSet extends TypeContainer
Type representing an array schema with unique elements (aka a set).
  • Method Details

    • of

      static TypeSet of(TypeNames typeNames, Type innerType)
      Creates a type for a set.
      Parameters:
      typeNames - the type names instance
      innerType - the type contained in the array
      Returns:
      a set type
    • containerImplementation

      default String containerImplementation()
      Description copied from interface: TypeContainer
      Returns the java implementation used to instantiate this container.
      Specified by:
      containerImplementation in interface TypeContainer
      Returns:
      the java implementation used to instantiate this container
    • typeName

      default TypeName typeName()
      Returns the type name. Note that this needs to be resolved late (when accessed) and not when created. This ensures that conflict-renaming of the inner-type is reflected in the final type name.
      Specified by:
      typeName in interface Type
      Returns:
      the type name