Class IntegerType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.model.type.IntegerType
- All Implemented Interfaces:
Type
-
Nested Class Summary
Nested Classes -
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 IntegerTypestatic IntegerTypestatic IntegerTypeofFormat(IntegerType.Format format, 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
-
ofFormat
-
formatInteger
-
formatLong
-
withConstraints
-
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
-
getFormat
-
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)
-