public final class OCamlTuple5<T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> extends OCamlValue
OCamlOption
class is the wrapper class for OCaml values of
type 'a * 'b * 'c * 'd * 'e
.WRAPPER
Modifier and Type | Method and Description |
---|---|
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> |
create(T0 v0,
T1 v1,
T2 v2,
T3 v3,
T4 v4)
Constructs a new
'a * 'b * 'c * 'c * 'd * 'e 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.
|
T4 |
get4()
Returns the fifth element of the wrapped value.
|
Wrapper<? extends OCamlTuple5<T0,T1,T2,T3,T4>> |
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,T4 extends OCamlValue> |
wrap(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<T3> w3,
Wrapper<T4> w4,
org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> |
wrapper(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<T3> w3,
Wrapper<T4> w4)
Returns a wrapper for
OCamlTuple5 values. |
value, wrap, wrapper
public Wrapper<? extends OCamlTuple5<T0,T1,T2,T3,T4>> getWrapper()
Value
elements into
instances of the current class.getWrapper
in class OCamlValue
Value
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 OCamlValue
idx
- 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 T4 get4()
public int hashCode()
hashCode
in class OCamlValue
public boolean equals(java.lang.Object obj)
equals
in class OCamlValue
public java.lang.String toString()
toString
in class OCamlValue
public static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> OCamlTuple5<T0,T1,T2,T3,T4> create(T0 v0, T1 v1, T2 v2, T3 v3, T4 v4)
'a * 'b * 'c * 'c * 'd * 'e
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 wrapv4
- fifth element of value to wrapOCamlTuple5
instance wrapping the passed valuespublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> OCamlTuple5<T0,T1,T2,T3,T4> wrap(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<T3> w3, Wrapper<T4> w4, org.ocamljava.runtime.values.Value v)
w0
- wrapper for nested value - should not be null
w1
- wrapper for nested value - should not be null
w2
- wrapper for nested value - should not be null
w3
- wrapper for nested value - should not be null
w4
- wrapper for nested value - should not be null
v
- value to wrap - should not be null
OCamlTuple5
instance wrapping the passed valuepublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,T3 extends OCamlValue,T4 extends OCamlValue> Wrapper<? extends OCamlTuple5<T0,T1,T2,T3,T4>> wrapper(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<T3> w3, Wrapper<T4> w4)
OCamlTuple5
values.w0
- wrapper for nested value - should not be null
w1
- wrapper for nested value - should not be null
w2
- wrapper for nested value - should not be null
w3
- wrapper for nested value - should not be null
w4
- wrapper for nested value - should not be null
OCamlTuple5
values