public final class OCamlTuple4<T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> extends OCamlValue
OCamlOption class is the wrapper class for OCaml values of
type 'a * 'b * 'c * 'd.WRAPPER| Modifier and Type | Method and Description |
|---|---|
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> |
create(T0 v0,
T1 v1,
T2 v2,
T3 v3)
Constructs a new
'a * 'b * 'c * 'c * 'd value, and wraps it. |
boolean |
equals(java.lang.Object obj) |
T0 |
get0()
Returns the first element of the wrapped value.
|
T1 |
get1()
Returns the second element of the wrapped value.
|
T2 |
get2()
Returns the third element of the wrapped value.
|
T3 |
get3()
Returns the fourth element of the wrapped value.
|
Wrapper<? extends OCamlTuple4<T0,T1,T2,T3>> |
getWrapper()
Returns the wrapper used to wrap
Value elements into
instances of the current class. |
Wrapper<? extends OCamlValue> |
getWrapper(int idx)
Returns the wrapper used to wrap
Value elements into
instances of the embedded type at given index. |
int |
hashCode() |
java.lang.String |
toString() |
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> |
wrap(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<T3> w3,
org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> |
wrapper(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<T3> w3)
Returns a wrapper for
OCamlTuple4 values. |
value, wrap, wrapperpublic Wrapper<? extends OCamlTuple4<T0,T1,T2,T3>> getWrapper()
Value elements into
instances of the current class.getWrapper in class OCamlValueValue elements into
instances of the current classpublic Wrapper<? extends OCamlValue> getWrapper(int idx)
Value elements into
instances of the embedded type at given index.getWrapper in class OCamlValueidx - index of embedded typeValue elements into
instances of the embedded type at given index.public T0 get0()
public T1 get1()
public T2 get2()
public T3 get3()
public int hashCode()
hashCode in class OCamlValuepublic boolean equals(java.lang.Object obj)
equals in class OCamlValuepublic java.lang.String toString()
toString in class OCamlValuepublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> OCamlTuple4<T0,T1,T2,T3> create(T0 v0, T1 v1, T2 v2, T3 v3)
'a * 'b * 'c * 'c * 'd value, and wraps it.v0 - first element of value to wrapv1 - second element of value to wrapv2 - third element of value to wrapv3 - fourth element of value to wrapOCamlTuple4 instance wrapping the passed valuespublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> OCamlTuple4<T0,T1,T2,T3> wrap(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<T3> w3, org.ocamljava.runtime.values.Value v)
w0 - wrapper for nested value - should not be nullw1 - wrapper for nested value - should not be nullw2 - wrapper for nested value - should not be nullw3 - wrapper for nested value - should not be nullv - value to wrap - should not be nullOCamlTuple4 instance wrapping the passed valuepublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue> Wrapper<? extends OCamlTuple4<T0,T1,T2,T3>> wrapper(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<T3> w3)
OCamlTuple4 values.w0 - wrapper for nested value - should not be nullw1 - wrapper for nested value - should not be nullw2 - wrapper for nested value - should not be nullw3 - wrapper for nested value - should not be nullOCamlTuple4 values