Class JavaIntegerType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.java.model.type.BaseJavaType
com.github.muehmar.gradle.openapi.generator.java.model.type.NonGenericJavaType
com.github.muehmar.gradle.openapi.generator.java.model.type.JavaIntegerType
- All Implemented Interfaces:
JavaType
-
Field Summary
Fields inherited from class com.github.muehmar.gradle.openapi.generator.java.model.type.BaseJavaType
apiType, className -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaIntegerType(QualifiedClassName className, Optional<ApiType> apiClassName, Constraints constraints, Nullability nullability) -
Method Summary
Modifier and TypeMethodDescription<T> Tfold(Function<JavaArrayType, T> onArrayType, Function<JavaBooleanType, T> onBooleanType, Function<JavaEnumType, T> onEnumType, Function<JavaMapType, T> onMapType, Function<JavaAnyType, T> onAnyType, Function<JavaNumericType, T> onNumericType, Function<JavaIntegerType, T> onIntegerType, Function<JavaObjectType, T> onObjectType, Function<JavaStringType, T> onStringType) booleanReturns true in case this class is a java array (not to be confused with the openapi array-type).withNullability(Nullability nullability) static JavaIntegerTypewrap(IntegerType integerType, TypeMappings typeMappings) Methods inherited from class com.github.muehmar.gradle.openapi.generator.java.model.type.NonGenericJavaType
getAllQualifiedClassNames, getParameterizedClassNameMethods inherited from class com.github.muehmar.gradle.openapi.generator.java.model.type.BaseJavaType
getApiType, getNullability, getQualifiedClassNameMethods 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.java.model.type.JavaType
getImports, getImportsAsString, getParameterizedApiClassName, getWriteableParameterizedClassName, hasApiTypeDeep, hasNoApiTypeDeep, isAnyType, isArrayType, isContainerType, isIntegerType, isMapType, isNullableContainerValueType, isNullableItemsArrayType, isNullableValuesMapType, isNumericType, onArrayType, onMapType
-
Constructor Details
-
JavaIntegerType
protected JavaIntegerType(QualifiedClassName className, Optional<ApiType> apiClassName, Constraints constraints, Nullability nullability)
-
-
Method Details
-
wrap
-
isJavaArray
public boolean isJavaArray()Description copied from interface:JavaTypeReturns true in case this class is a java array (not to be confused with the openapi array-type). -
withNullability
-
getConstraints
-
fold
public <T> T fold(Function<JavaArrayType, T> onArrayType, Function<JavaBooleanType, T> onBooleanType, Function<JavaEnumType, T> onEnumType, Function<JavaMapType, T> onMapType, Function<JavaAnyType, T> onAnyType, Function<JavaNumericType, T> onNumericType, Function<JavaIntegerType, T> onIntegerType, Function<JavaObjectType, T> onObjectType, Function<JavaStringType, T> onStringType)
-