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: DxCollection.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12:
13: /**
14: * Common interface of all collection classes.
15: *
16: *
17: * @author <a href="http://www.softwarebuero.de/">SMB</a>
18: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
19: */
20: public interface DxCollection extends DxCompatible {
21:
22: /**
23: */
24: public Object clone();
25:
26: /**
27: */
28: public DxCollection valueClone();
29:
30: /**
31: */
32: public Object[] toArray();
33:
34: /**
35: */
36: public boolean add(Object obj);
37:
38: /**
39: */
40: public boolean addAll(DxCollection coll);
41:
42: /**
43: */
44: public boolean addAll(Object[] objs);
45:
46: /**
47: */
48: public boolean remove(Object obj);
49:
50: /**
51: */
52: public boolean removeAll(DxCollection coll);
53:
54: /**
55: */
56: public boolean contains(Object obj);
57:
58: /**
59: */
60: public boolean containsAll(DxCollection coll);
61:
62: /**
63: */
64: public DxIterator iterator();
65:
66: /**
67: */
68: public int count();
69:
70: /**
71: */
72: public boolean isEmpty();
73:
74: /**
75: */
76: public void clear();
77: }
|