Package com.db4o.internal.slots
Class Slot
- java.lang.Object
-
- com.db4o.internal.slots.Slot
-
public class Slot extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MARSHALLED_LENGTH
static int
NEW
static int
UPDATE
static Slot
ZERO
-
Constructor Summary
Constructors Constructor Description Slot(int address, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
address()
Slot
append(Slot slot)
int
compareByAddress(Slot slot)
int
compareByLength(Slot slot)
boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
isDirectlyPreceding(Slot other)
boolean
isNew()
boolean
isNull()
static boolean
isNull(Slot slot)
boolean
isUpdate()
int
length()
Slot
subSlot(int offset)
java.lang.String
toString()
Slot
truncate(int requiredLength)
-
-
-
Field Detail
-
ZERO
public static final Slot ZERO
-
NEW
public static final int NEW
- See Also:
- Constant Field Values
-
UPDATE
public static final int UPDATE
- See Also:
- Constant Field Values
-
MARSHALLED_LENGTH
public static int MARSHALLED_LENGTH
-
-
Method Detail
-
address
public int address()
-
length
public int length()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
subSlot
public Slot subSlot(int offset)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
truncate
public Slot truncate(int requiredLength)
-
compareByAddress
public int compareByAddress(Slot slot)
-
compareByLength
public int compareByLength(Slot slot)
-
isDirectlyPreceding
public boolean isDirectlyPreceding(Slot other)
-
isNull
public boolean isNull()
-
isNew
public boolean isNew()
-
isUpdate
public boolean isUpdate()
-
isNull
public static boolean isNull(Slot slot)
-
-