01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DxObject.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: public class DxObject implements DxCompatible {
12:
13: final static long serialVersionUID = 1L;
14:
15: /**
16: * Constructor
17: */
18: public DxObject() {
19: }
20:
21: /**
22: * liefert eine kopie des objektes;
23: * sollte von subclasses ueberschrieben werden;
24: */
25: public Object clone() {
26: try {
27: return super .clone();
28: } catch (Exception e) {
29: throw new RuntimeException(e.toString());
30: }
31: }
32:
33: /**
34: * true, wenn receiver echt kleiner als obj
35: */
36: public boolean isLess(DxCompatible obj) {
37: throw new RuntimeException("isLess(): subclass responsibility");
38: }
39:
40: }
|