|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.electric.database.geometry.btree.unboxed.UnboxedInt
public class UnboxedInt
A 32-bit int in unboxed form
| Field Summary | |
|---|---|
static UnboxedInt |
instance
|
| Constructor Summary | |
|---|---|
UnboxedInt()
|
|
| Method Summary | |
|---|---|
int |
compare(byte[] buf1,
int ofs1,
byte[] buf2,
int ofs2)
Same as Comparable.compare(), but operates directly on serialized representation |
java.lang.Integer |
deserialize(byte[] buf,
int ofs)
Deserialize a value; need not be compatible with V.readObject()! |
int |
deserializeInt(byte[] buf,
int ofs)
|
int |
getSize()
Return the size, in bytes, of a value; all values must have the same size |
void |
serialize(java.lang.Integer k,
byte[] buf,
int ofs)
Serialize a value; need not be compatible with V.writeObject()! |
void |
serializeInt(int i,
byte[] buf,
int ofs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final UnboxedInt instance
| Constructor Detail |
|---|
public UnboxedInt()
| Method Detail |
|---|
public int getSize()
Unboxed
getSize in interface Unboxed<java.lang.Integer>
public java.lang.Integer deserialize(byte[] buf,
int ofs)
Unboxed
deserialize in interface Unboxed<java.lang.Integer>
public void serialize(java.lang.Integer k,
byte[] buf,
int ofs)
Unboxed
serialize in interface Unboxed<java.lang.Integer>
public int deserializeInt(byte[] buf,
int ofs)
public void serializeInt(int i,
byte[] buf,
int ofs)
public int compare(byte[] buf1,
int ofs1,
byte[] buf2,
int ofs2)
UnboxedComparable
compare in interface UnboxedComparable<java.lang.Integer>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||