Class CompSerWrapper<T extends Serializable & Comparable<? super T>>
- java.lang.Object
-
- org.marketcetera.util.ws.wrappers.BaseWrapper<R>
-
- org.marketcetera.util.ws.wrappers.DualWrapper<T,byte[]>
-
- org.marketcetera.util.ws.wrappers.SerWrapper<T>
-
- org.marketcetera.util.ws.wrappers.CompSerWrapper<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<CompSerWrapper<T>>
public class CompSerWrapper<T extends Serializable & Comparable<? super T>> extends SerWrapper<T> implements Comparable<CompSerWrapper<T>>
A dual-form wrapper for marshalling a comparable and serializable object. The raw form is an object implementingSerializableandComparable, and the marshalled form is a byte array.- Since:
- 1.0.0
- Version:
- $Id: CompSerWrapper.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CompSerWrapper()Creates a new wrapper.CompSerWrapper(T raw)Creates a new wrapper for the given object, in its raw form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CompSerWrapper<T> other)-
Methods inherited from class org.marketcetera.util.ws.wrappers.SerWrapper
getDeserializationException, getSerializationException, toMarshalled, toRaw
-
Methods inherited from class org.marketcetera.util.ws.wrappers.DualWrapper
getMarshalled, getRaw, readExternal, setMarshalled, setMarshalledOnly, setRaw, setRawOnly, writeExternal
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompSerWrapper
public CompSerWrapper(T raw)
Creates a new wrapper for the given object, in its raw form. It also sets the internal marshalled form to match.- Parameters:
raw- The object, which may be null.
-
CompSerWrapper
public CompSerWrapper()
Creates a new wrapper. This empty constructor is intended for use by JAXB and Java serialization.
-
-
Method Detail
-
compareTo
public int compareTo(CompSerWrapper<T> other)
- Specified by:
compareToin interfaceComparable<T extends Serializable & Comparable<? super T>>
-
-