public abstract class ComposedWrapper<T extends OCamlValue> extends java.lang.Object implements Wrapper<T>
AsbtractWrapper class provides a partial implementation
for the Wrapper interface, by taking the elements to be
returned by the getWrapper(int) method as constructor
parameters.| Constructor and Description |
|---|
ComposedWrapper(Wrapper<? extends OCamlValue>... wrappers)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Wrapper<? extends OCamlValue> |
getWrapper(int idx)
Returns the wrapper used to wrap
Value elements into
instances of the embedded type at given index. |
public ComposedWrapper(Wrapper<? extends OCamlValue>... wrappers)
wrappers - elements to be returned by the getWrapper(int)
methodpublic final Wrapper<? extends OCamlValue> getWrapper(int idx)
Value elements into
instances of the embedded type at given index.getWrapper in interface Wrapper<T extends OCamlValue>idx - index of embedded typeValue elements into
instances of the embedded type at given index