Class ArrayType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.model.type.ArrayType
- 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) static ArrayTypeofItemType(Type itemType, Nullability nullability) replaceObjectType(PojoName objectTypeName, String newObjectTypeDescription, Type newObjectType) withConstraints(Constraints constraints) 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
-
ofItemType
-
withConstraints
-
getItemType
-
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)
-