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 intMARSHALLED_LENGTHstatic intNEWstatic intUPDATEstatic SlotZERO
-
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 intaddress()Slotappend(Slot slot)intcompareByAddress(Slot slot)intcompareByLength(Slot slot)booleanequals(java.lang.Object obj)inthashCode()booleanisDirectlyPreceding(Slot other)booleanisNew()booleanisNull()static booleanisNull(Slot slot)booleanisUpdate()intlength()SlotsubSlot(int offset)java.lang.StringtoString()Slottruncate(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
subSlot
public Slot subSlot(int offset)
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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)
-
-