01: /*
02: Copyright (C) 2007 Mobixess Inc. http://www.java-objects-database.com
03:
04: This file is part of the JODB (Java Objects Database) open source project.
05:
06: JODB is free software; you can redistribute it and/or modify it under
07: the terms of version 2 of the GNU General Public License as published
08: by the Free Software Foundation.
09:
10: JODB is distributed in the hope that it will be useful, but WITHOUT ANY
11: WARRANTY; without even the implied warranty of MERCHANTABILITY or
12: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13: for more details.
14:
15: You should have received a copy of the GNU General Public License along
16: with this program; if not, write to the Free Software Foundation, Inc.,
17: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18: */
19: package com.mobixess.jodb.core.io;
20:
21: public class JODBIOUtils {
22:
23: private JODBIOUtils() {
24: }
25:
26: // public static long addAbsoluteOffsetIdentifierBit(long offset){
27: // return offset|(1<<63);
28: // }
29:
30: // public static long removeAbsoluteOffsetIdentifierBit(long offset){
31: // return offset&~(1<<63);
32: // }
33: //
34: // public static boolean isAbsoluteOffset(long offset){
35: // return (offset&(1<<63)) != 0;
36: // }
37: //
38: // public static int addAbsoluteOffsetIdentifierBit(int offset){
39: // return offset|(1<<31);
40: // }
41: //
42: // public static int removeAbsoluteOffsetIdentifierBit(int offset){
43: // return offset&~(1<<31);
44: // }
45: //
46: // public static boolean isAbsoluteOffset(int offset){
47: // return (offset&(1<<31)) != 0;
48: // }
49:
50: }
|