org.marketcetera.util.ws.wrappers
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 implementing Serializable
and Comparable, 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
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.
compareTo
public int compareTo(CompSerWrapper<T> other)
- Specified by:
compareTo in interface Comparable<CompSerWrapper<T extends Serializable & Comparable<? super T>>>
Copyright © 2012. All Rights Reserved.