Class FloatParam
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue<PrimitiveOrWrapperType,V>
org.evomaster.client.java.controller.problem.rpc.schema.params.PrimitiveOrWrapperParam<Float>
org.evomaster.client.java.controller.problem.rpc.schema.params.FloatParam
- All Implemented Interfaces:
NumericConstraintBase<BigDecimal>
float param
-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
ConstructorsConstructorDescriptionFloatParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) FloatParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema) -
Method Summary
Modifier and TypeMethodDescriptionorg.evomaster.client.java.controller.api.dto.problem.rpc.ParamDtogetDto()get its dto format in order to further handle it with evomastr coregetValueAsJavaString(boolean isJava) booleanisValidInstance(Object instance) newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava) create assertions with java for responseprimitiveValueMethod(boolean isJava) voidsetValueBasedOnStringValue(String stringValue) protected voidsetValueBasedOnValidInstance(Object instance) set the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as validMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.PrimitiveOrWrapperParam
build, castValueInTestGenerationIfNeeded, castValueWithSpecificMethod, convertValueTo, copyProperties, getCastType, getMax, getMaxInclusive, getMin, getMinInclusive, getPrecision, getPrimitiveOrWrapper, getPrimitiveValueInAssertion, getScale, newInstance, newInstanceWithJavaOrKotlin, referenceTypes, setMax, setMaxInclusive, setMin, setMinInclusive, setPrecision, setScale, setValueBasedOnDtoMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
copyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evomaster.client.java.controller.problem.rpc.schema.params.NumericConstraintBase
handleConstraintsInCopy, handleConstraintsInCopyDto
-
Constructor Details
-
FloatParam
public FloatParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) -
FloatParam
-
-
Method Details
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<PrimitiveOrWrapperType,Float> - Returns:
- a string which could representing the value of the param with java eg, float 4.2 could be 4.2f
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.ParamDto getDto()Description copied from class:NamedTypedValueget its dto format in order to further handle it with evomastr core- Overrides:
getDtoin classPrimitiveOrWrapperParam<Float>- Returns:
- its corresponding dto
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<PrimitiveOrWrapperType,Float>
-
setValueBasedOnStringValue
- Specified by:
setValueBasedOnStringValuein classPrimitiveOrWrapperParam<Float>
-
setValueBasedOnValidInstance
Description copied from class:NamedTypedValueset the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as valid- Specified by:
setValueBasedOnValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Float> - Parameters:
instance- is the instance
-
isValidInstance
- Overrides:
isValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Float> - Parameters:
instance- a java object which is an instance of this param schema- Returns:
- if the specified instance conforms with this param schema
-
newAssertionWithJavaOrKotlin
public List<String> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava) Description copied from class:NamedTypedValuecreate assertions with java for response- Overrides:
newAssertionWithJavaOrKotlinin classPrimitiveOrWrapperParam<Float>- Parameters:
indent- specifies the current indent of the coderesponseVarName- a variable name for responses- Returns:
- a list of string for assertions
-
primitiveValueMethod
- Specified by:
primitiveValueMethodin classPrimitiveOrWrapperParam<Float>
-