UNPACK
- The type of the unpacked data.PACK
- The type of the packed data.PACKEXC
- The exception being thrown when packaging failed.Packager.PackageProcessor<UNPACK,PACK,UNPACKEXC,PACKEXC>
public interface Packager<UNPACK,PACK,PACKEXC extends Exception>
Packager
interface defines methods to pack instances and return
the packed, wrapped or boxed instances. Any data being packed with
toPackaged(Object)
must be unpackable with the according counterpart
method Packager.Extractor.toExtracted(Object)
without loss of information.Modifier and Type | Interface | Description |
---|---|---|
static interface |
Packager.Extractor<PACK,UNPACK,UNPACKEXC extends Exception> |
The
Packager.Extractor interface defines methods to unpack instances and
return the unpacked, unwrapped or unboxed instances. |
static interface |
Packager.PackageProcessor<UNPACK,PACK,UNPACKEXC extends Exception,PACKEXC extends Exception> |
The
Packager.PackageProcessor type combines a Packager with an
Packager.Extractor to package and extract in one module. |
Modifier and Type | Method | Description |
---|---|---|
PACK |
toPackaged(UNPACK aUnpacked) |
Packs the provided instance, e.g. it is wrapped or boxed with additional
information.
|
Copyright © 2021. All rights reserved.