Class ParameterizedClassName
java.lang.Object
com.github.muehmar.gradle.openapi.generator.java.model.name.ParameterizedClassName
- All Implemented Interfaces:
WriteableParameterizedClassName
Representation of a fully parameterized class, i.e. contains all types of the type parameters (if
present).
Parameterized classes like lists or maps contains also a value type, i.e. the type parameter which denotes the type of the value in some sense. The type which is considered as value type will always be the last type parameter. This means this class is sufficient for lists and maps but not arbitrary parameterized classes which may not contain type parameters or are not the last type parameter.
Non-generic classes may be represented with this class too, they will just get rendered without any type parameters.
Parameterized classes like lists or maps contains also a value type, i.e. the type parameter which denotes the type of the value in some sense. The type which is considered as value type will always be the last type parameter. This means this class is sufficient for lists and maps but not arbitrary parameterized classes which may not contain type parameters or are not the last type parameter.
Non-generic classes may be represented with this class too, they will just get rendered without any type parameters.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasString()asStringWithValueTypeAnnotations(Function<JavaType, String> createAnnotationsForValueType) static ParameterizedClassNamefromGenericClass(QualifiedClassName qualifiedClassName, PList<JavaType> genericTypes) static ParameterizedClassNamefromNonGenericClass(QualifiedClassName qualifiedClassName) toString()
-
Method Details
-
fromNonGenericClass
-
fromGenericClass
public static ParameterizedClassName fromGenericClass(QualifiedClassName qualifiedClassName, PList<JavaType> genericTypes) -
asStringWithValueTypeAnnotations
-
asString
- Specified by:
asStringin interfaceWriteableParameterizedClassName
-
asStringWrappingNullableValueType
- Specified by:
asStringWrappingNullableValueTypein interfaceWriteableParameterizedClassName
-
toString
-