Package io.microsphere.convert
Class ObjectToByteArrayConverter
- java.lang.Object
-
- io.microsphere.convert.ObjectToByteArrayConverter
-
- All Implemented Interfaces:
Converter<java.lang.Object,byte[]>,Prioritized,java.lang.Comparable<Prioritized>
public class ObjectToByteArrayConverter extends java.lang.Object implements Converter<java.lang.Object,byte[]>
The class coverts theObjectinstance to bebyte arrayobject.- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectToByteArrayConverterINSTANCESingleton instance ofObjectToByteArrayConverter-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ObjectToByteArrayConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]convert(java.lang.Object source)Convert the source-typed value to the target-typed value-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.convert.Converter
accept, getSourceType, getTargetType
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo, getPriority
-
-
-
-
Field Detail
-
INSTANCE
public static final ObjectToByteArrayConverter INSTANCE
Singleton instance ofObjectToByteArrayConverter
-
-
Method Detail
-
convert
public byte[] convert(java.lang.Object source)
Description copied from interface:ConverterConvert the source-typed value to the target-typed value
-
-