org.rblasch.convert.converters.primitives
Class ShortToByteConverter

java.lang.Object
  extended byorg.rblasch.convert.converters.AbstractConverter
      extended byorg.rblasch.convert.converters.AbstractClassConverter
          extended byorg.rblasch.convert.converters.primitives.ShortToByteConverter
All Implemented Interfaces:
Converter, MetaConverter

public class ShortToByteConverter
extends AbstractClassConverter

Author:
Ronald Blaschke

Constructor Summary
ShortToByteConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object value)
          Try to convert the given Object.
 java.lang.Class getDestinationClass()
           
 java.lang.Class getSourceClass()
           
 int getWeight()
           
 
Methods inherited from class org.rblasch.convert.converters.AbstractClassConverter
getDestinationType, getSourceType
 
Methods inherited from class org.rblasch.convert.converters.AbstractConverter
equals, getConverter, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortToByteConverter

public ShortToByteConverter()
Method Detail

getSourceClass

public java.lang.Class getSourceClass()
Specified by:
getSourceClass in class AbstractClassConverter

getDestinationClass

public java.lang.Class getDestinationClass()
Specified by:
getDestinationClass in class AbstractClassConverter

getWeight

public int getWeight()

convert

public java.lang.Object convert(java.lang.Object value)
                         throws ConversionFailedException
Description copied from interface: Converter
Try to convert the given Object.

Parameters:
value - Object
Returns:
converted Object
Throws:
ConversionFailedException


Copyright © 2004 Ronald Blaschke. All Rights Reserved.