Package com.db4o.internal.btree
Class BTreePointer
- java.lang.Object
-
- com.db4o.internal.btree.BTreePointer
-
public final class BTreePointer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BTreePointer(Transaction transaction, ByteArrayBuffer nodeReader, BTreeNode node, int index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BTreePointer y)
void
copyTo(BTreePointer target)
static boolean
equals(BTreePointer x, BTreePointer y)
boolean
equals(java.lang.Object obj)
int
hashCode()
int
index()
boolean
isValid()
java.lang.Object
key()
static boolean
lessThan(BTreePointer x, BTreePointer y)
static BTreePointer
max(BTreePointer x, BTreePointer y)
static BTreePointer
min(BTreePointer x, BTreePointer y)
BTreePointer
next()
BTreeNode
node()
BTreePointer
previous()
BTreePointer
shallowClone()
java.lang.String
toString()
BTreePointer
unsafeFastNext()
Duplicate code of next(), reusing this BTreePointer without creating a new BTreePointer, very dangerous to call because there may be side effects if this BTreePointer is used elsewhere and code relies on state the stay the same.
-
-
-
Constructor Detail
-
BTreePointer
public BTreePointer(Transaction transaction, ByteArrayBuffer nodeReader, BTreeNode node, int index)
-
-
Method Detail
-
max
public static BTreePointer max(BTreePointer x, BTreePointer y)
-
min
public static BTreePointer min(BTreePointer x, BTreePointer y)
-
shallowClone
public BTreePointer shallowClone()
-
copyTo
public void copyTo(BTreePointer target)
-
index
public final int index()
-
node
public final BTreeNode node()
-
key
public final java.lang.Object key()
-
next
public BTreePointer next()
-
unsafeFastNext
public BTreePointer unsafeFastNext()
Duplicate code of next(), reusing this BTreePointer without creating a new BTreePointer, very dangerous to call because there may be side effects if this BTreePointer is used elsewhere and code relies on state the stay the same.
-
previous
public BTreePointer previous()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(BTreePointer y)
-
lessThan
public static boolean lessThan(BTreePointer x, BTreePointer y)
-
equals
public static boolean equals(BTreePointer x, BTreePointer y)
-
isValid
public boolean isValid()
-
-