Top Description Inners Constructors Methods
org.lwjgl.util.lmdb

public abstract Class MDBCmpFunc

extends Callback
implements MDBCmpFuncI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.lmdb.MDBCmpFuncI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.lmdb.MDBCmpFunc.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Type


int (*invoke) (
    MDB_val const *a,
    MDB_val const *b
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
MDBCmpFunc(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static MDBCmpFunc

Returns:

the new MDBCmpFunc
create
(long functionPointer)

Creates a MDBCmpFunc instance from the specified function pointer.

public static MDBCmpFunc
create(MDBCmpFuncI instance)

Creates a MDBCmpFunc instance that delegates to the specified MDBCmpFuncI instance.

public static MDBCmpFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

MDBCmpFuncback to summary
protected MDBCmpFunc()
MDBCmpFuncback to summary
pack-priv MDBCmpFunc(long functionPointer)

Method Detail

createback to summary
public static MDBCmpFunc create(long functionPointer)

Creates a MDBCmpFunc instance from the specified function pointer.

Returns:MDBCmpFunc

the new MDBCmpFunc

createback to summary
public static MDBCmpFunc create(MDBCmpFuncI instance)

Creates a MDBCmpFunc instance that delegates to the specified MDBCmpFuncI instance.

createSafeback to summary
public static MDBCmpFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.lmdb back to summary

private final Class MDBCmpFunc.Container

extends MDBCmpFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MDBCmpFuncI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, MDBCmpFuncI delegate)

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
the first item to compare
a
,
long
the second item to compare
b
)

Implements org.lwjgl.util.lmdb.MDBCmpFuncI.invoke.

A callback function used to compare two keys in a database.
Inherited from org.lwjgl.util.lmdb.MDBCmpFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final MDBCmpFuncI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, MDBCmpFuncI delegate)

Method Detail

invokeback to summary
public int invoke(long a, long b)

Implements org.lwjgl.util.lmdb.MDBCmpFuncI.invoke.

Doc from org.lwjgl.util.lmdb.MDBCmpFuncI.invoke.

A callback function used to compare two keys in a database.

Parameters
a:long

the first item to compare

b:long

the second item to compare

Returns:int

< 0 if a < b, 0 if a == b, > 0 if a > b

Annotations
@Override