public static Object fromStorage ( Object stored , Encoder encoder , Wrapper wrapper ) { if ( encoder == null || wrapper == null ) { throw new IllegalArgumentException ( "Both Encoder and Wrapper must be provided!" ) ; } if ( stored == null ) return null ; return encoder . fromStorage ( wrapper . unwrap ( stored ) ) ; }
Decode object from storage format .