Class ByteToByte
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.Conversion<Byte,Byte>
-
- de.gebit.integrity.parameter.conversion.conversions.java.identity.ByteToByte
-
public class ByteToByte extends Conversion<Byte,Byte>
A default Integrity conversion. This conversion actually doesn't convert anything - it exists solely to keep Byte as Byte by default.- Author:
- Rene Schneider - initial API and implementation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gebit.integrity.parameter.conversion.Conversion
Conversion.Priority
-
-
Constructor Summary
Constructors Constructor Description ByteToByte()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Byteconvert(Byte aSource, Class<? extends Byte> aTargetType, ConversionContext aConversionContext)Performs the conversion.-
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
-
-
-
Method Detail
-
convert
public Byte convert(Byte aSource, Class<? extends Byte> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException
Description copied from class:ConversionPerforms the conversion.- Specified by:
convertin classConversion<Byte,Byte>- Parameters:
aSource- the source object to convertaTargetType- TODOaConversionContext- controls some conversion parameters and rules; may be null if the defaultConversionContextvalues shall be used- Returns:
- the converted object
- Throws:
ConversionFailedException- in case of conversion errors
-
-