public final class OCamlUnit extends OCamlValue
OCamlUnit class is the wrapper class for OCaml values of
type unit.| Modifier and Type | Field and Description |
|---|---|
static OCamlUnit |
INSTANCE
An representation of
OCamlUnit, all instances being equal. |
static Wrapper<OCamlUnit> |
WRAPPER
Wrapper for
OCamlUnit values. |
| Modifier and Type | Method and Description |
|---|---|
static OCamlUnit |
create()
Constructs a new
unit value, and wraps it. |
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlUnit> |
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 OCamlUnit |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlUnit> |
wrapper()
Returns a wrapper for
OCamlUnit values. |
valuepublic Wrapper<? extends OCamlUnit> 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 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 OCamlUnit create()
unit value, and wraps it.OCamlUnit instance wrapping the passed valuepublic static OCamlUnit wrap(org.ocamljava.runtime.values.Value v)
v - ignoredOCamlUnit instance wrapping the passed value