Class MapType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.model.type.MapType
- All Implemented Interfaces:
Type
-
Method Summary
Modifier and TypeMethodDescriptionapplyMapping(PojoNameMapping pojoNameMapping) <T> Tfold(Function<NumericType, T> onNumericType, Function<IntegerType, T> onIntegerType, Function<StringType, T> onStringType, Function<ArrayType, T> onArrayType, Function<BooleanType, T> onBooleanType, Function<ObjectType, T> onObjectType, Function<EnumType, T> onEnumType, Function<MapType, T> onMapType, Function<AnyType, T> onAnyType) getKey()getValue()static MapTypeofKeyAndValueType(Type key, Type value) replaceObjectType(PojoName objectTypeName, String newObjectTypeDescription, Type newObjectType) withConstraints(Constraints constraints) withNullability(Nullability nullability) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.muehmar.gradle.openapi.generator.model.Type
adjustNullablePojo, asArrayType, asEnumType, asMapType, asObjectType, asStringType, isAnyType, isArrayType, isEnumType, isMapType, isObjectType, isStringType, onObjectType
-
Method Details
-
ofKeyAndValueType
-
getKey
-
getValue
-
withConstraints
-
withNullability
-
getConstraints
- Specified by:
getConstraintsin interfaceType
-
applyMapping
- Specified by:
applyMappingin interfaceType
-
makeNullable
- Specified by:
makeNullablein interfaceType
-
replaceObjectType
public Type replaceObjectType(PojoName objectTypeName, String newObjectTypeDescription, Type newObjectType) - Specified by:
replaceObjectTypein interfaceType
-
getNullability
- Specified by:
getNullabilityin interfaceType
-
fold
public <T> T fold(Function<NumericType, T> onNumericType, Function<IntegerType, T> onIntegerType, Function<StringType, T> onStringType, Function<ArrayType, T> onArrayType, Function<BooleanType, T> onBooleanType, Function<ObjectType, T> onObjectType, Function<EnumType, T> onEnumType, Function<MapType, T> onMapType, Function<AnyType, T> onAnyType)
-