Class ShortTypeManufacturerImpl
- java.lang.Object
-
- uk.co.jemos.podam.typeManufacturers.AbstractTypeManufacturer<Short>
-
- uk.co.jemos.podam.typeManufacturers.ShortTypeManufacturerImpl
-
- All Implemented Interfaces:
TypeManufacturer<Short>
public class ShortTypeManufacturerImpl extends AbstractTypeManufacturer<Short>
Default short type manufacturer. Created by tedonema on 17/05/2015.- Since:
- 6.0.0.RELEASE
-
-
Constructor Summary
Constructors Constructor Description ShortTypeManufacturerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Short
getShort(AttributeMetadata attributeMetadata)
It returns a short/Short value.Short
getShortInRange(short minValue, short maxValue, AttributeMetadata attributeMetadata)
It returns a short/Short value between min and max value (included).Short
getType(DataProviderStrategy strategy, AttributeMetadata attributeMetadata, Map<String,Type> genericTypesArgumentsMap)
Returns a type value conforming to the annotations and the AttributeMetadata provided.-
Methods inherited from class uk.co.jemos.podam.typeManufacturers.AbstractTypeManufacturer
findElementOfType, getDouble, getInteger
-
-
-
-
Method Detail
-
getType
public Short getType(DataProviderStrategy strategy, AttributeMetadata attributeMetadata, Map<String,Type> genericTypesArgumentsMap)
Returns a type value conforming to the annotations and the AttributeMetadata provided.- Parameters:
strategy
- The DataProviderStrategyattributeMetadata
- The AttributeMetadatagenericTypesArgumentsMap
- map with generic types mapped to actual types- Returns:
- A type value conforming to the annotations and the AttributeMetadata provided.
-
getShort
public Short getShort(AttributeMetadata attributeMetadata)
It returns a short/Short value.- Parameters:
attributeMetadata
- attribute metadata for instance to be fetched- Returns:
- A short/Short value.
-
getShortInRange
public Short getShortInRange(short minValue, short maxValue, AttributeMetadata attributeMetadata)
It returns a short/Short value between min and max value (included).- Parameters:
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned valueattributeMetadata
- attribute metadata for instance to be fetched- Returns:
- A short/Short value between min and max value (included).
-
-