org.marketcetera.util.ws.wrappers
Class CompSerWrapper<T extends Serializable & Comparable<? super T>>

java.lang.Object
  extended by org.marketcetera.util.ws.wrappers.BaseWrapper<R>
      extended by org.marketcetera.util.ws.wrappers.DualWrapper<T,byte[]>
          extended by org.marketcetera.util.ws.wrappers.SerWrapper<T>
              extended by 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

Constructor Summary
CompSerWrapper()
          Creates a new wrapper.
CompSerWrapper(T raw)
          Creates a new wrapper for the given object, in its raw form.
 
Method Summary
 int compareTo(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
 
Methods inherited from class org.marketcetera.util.ws.wrappers.BaseWrapper
equals, getValue, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
compareTo in interface Comparable<CompSerWrapper<T extends Serializable & Comparable<? super T>>>


Copyright © 2012. All Rights Reserved.