public final class OCamlChar extends OCamlValue
OCamlChar
class is the wrapper class for OCaml values of
type char
.Modifier and Type | Field and Description |
---|---|
static Wrapper<OCamlChar> |
WRAPPER
Wrapper for
OCamlChar values. |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the wrapped value as a
byte . |
char |
charValue()
Returns the wrapped value as a
char . |
static OCamlChar |
create(long v)
Constructs a new
int value, and wraps it. |
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlChar> |
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() |
int |
intValue()
Returns the wrapped value as a
int . |
java.lang.String |
toString() |
static OCamlChar |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlChar> |
wrapper()
Returns a wrapper for
OCamlChar values. |
value
public Wrapper<? extends OCamlChar> 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 byte byteValue()
byte
.byte
public char charValue()
char
.char
public int intValue()
int
.int
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 OCamlChar create(long v)
int
value, and wraps it.v
- value to wrapOCamlChar
instance wrapping the passed valuepublic static OCamlChar wrap(org.ocamljava.runtime.values.Value v)
v
- value to wrap - should not be null
OCamlChar
instance wrapping the passed value