package com.healthmarketscience.jackcess.impl;
-import org.apache.commons.lang.builder.CompareToBuilder;
+import java.io.Serializable;
+
import com.healthmarketscience.jackcess.RowId;
+import org.apache.commons.lang.builder.CompareToBuilder;
/**
*
* @author James Ahlborn
*/
-public class RowIdImpl implements RowId
+public class RowIdImpl implements RowId, Serializable
{
+ private static final long serialVersionUID = 20131014L;
+
/** special page number which will sort before any other valid page
number */
public static final int FIRST_PAGE_NUMBER = -1;
private final RowIdImpl _id;
- public RowImpl(RowIdImpl id)
- {
+ public RowImpl(RowIdImpl id) {
_id = id;
}
- public RowImpl(RowIdImpl id, int expectedSize)
- {
+ public RowImpl(RowIdImpl id, int expectedSize) {
super(expectedSize);
_id = id;
}
- public RowImpl(Row row)
- {
+ public RowImpl(Row row) {
super(row);
_id = (RowIdImpl)row.getId();
}