001: ///////////////////////////////////////////////////////////////////////////////
002: //
003: // Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
004: //
005: // All Rights Reserved
006: //
007: // This program is free software; you can redistribute it and/or modify
008: // it under the terms of the GNU General Public License and GNU Library
009: // General Public License as published by the Free Software Foundation;
010: // either version 2, or (at your option) any later version.
011: //
012: // This program is distributed in the hope that it will be useful,
013: // but WITHOUT ANY WARRANTY; without even the implied warranty of
014: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: // GNU General Public License and GNU Library General Public License
016: // for more details.
017: //
018: // You should have received a copy of the GNU General Public License
019: // and GNU Library General Public License along with this program; if
020: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
021: // MA 02139, USA.
022: //
023: ///////////////////////////////////////////////////////////////////////////////
024: package org.myoodb.collectable;
025:
026: public interface LinkedList extends AbstractCollection {
027: @org.myoodb.MyOodbIndex(value=-300)
028: @org.myoodb.MyOodbAccess(value="Write")
029: public void add(int index, Object element);
030:
031: @org.myoodb.MyOodbIndex(value=-301)
032: @org.myoodb.MyOodbAccess(value="Write")
033: public boolean add(Object o);
034:
035: @org.myoodb.MyOodbIndex(value=-302)
036: @org.myoodb.MyOodbAccess(value="Write")
037: public boolean addAll(java.util.Collection c);
038:
039: @org.myoodb.MyOodbIndex(value=-303)
040: @org.myoodb.MyOodbAccess(value="Write")
041: public boolean addAll(int index, java.util.Collection c);
042:
043: @org.myoodb.MyOodbIndex(value=-304)
044: @org.myoodb.MyOodbAccess(value="Write")
045: public void addFirst(Object o);
046:
047: @org.myoodb.MyOodbIndex(value=-305)
048: @org.myoodb.MyOodbAccess(value="Write")
049: public void addLast(Object o);
050:
051: @org.myoodb.MyOodbIndex(value=-306)
052: @org.myoodb.MyOodbAccess(value="Write")
053: public Object set(int index, Object element);
054:
055: @org.myoodb.MyOodbIndex(value=-307)
056: public Object get(int index);
057:
058: @org.myoodb.MyOodbIndex(value=-308)
059: public Object get(Object o);
060:
061: @org.myoodb.MyOodbIndex(value=-309)
062: public Object getWithInverseEqual(Object o);
063:
064: @org.myoodb.MyOodbIndex(value=-310)
065: public Object getFirst();
066:
067: @org.myoodb.MyOodbIndex(value=-311)
068: public Object getLast();
069:
070: @org.myoodb.MyOodbIndex(value=-312)
071: public boolean contains(Object o);
072:
073: @org.myoodb.MyOodbIndex(value=-313)
074: public boolean containsWithInverseEqual(Object o);
075:
076: @org.myoodb.MyOodbIndex(value=-314)
077: public int indexOf(Object o);
078:
079: @org.myoodb.MyOodbIndex(value=-315)
080: public int lastIndexOf(Object o);
081:
082: @org.myoodb.MyOodbIndex(value=-316)
083: @org.myoodb.MyOodbAccess(value="Write")
084: public Object remove(int index);
085:
086: @org.myoodb.MyOodbIndex(value=-317)
087: @org.myoodb.MyOodbAccess(value="Write")
088: public boolean remove(Object o);
089:
090: @org.myoodb.MyOodbIndex(value=-318)
091: @org.myoodb.MyOodbAccess(value="Write")
092: public boolean removeWithInverseEqual(Object o);
093:
094: @org.myoodb.MyOodbIndex(value=-319)
095: @org.myoodb.MyOodbAccess(value="Write")
096: public Object removeFirst();
097:
098: @org.myoodb.MyOodbIndex(value=-320)
099: @org.myoodb.MyOodbAccess(value="Write")
100: public Object removeLast();
101:
102: @org.myoodb.MyOodbIndex(value=-321)
103: public int size();
104:
105: @org.myoodb.MyOodbIndex(value=-322)
106: @org.myoodb.MyOodbAccess(value="Write")
107: public void clear();
108:
109: @org.myoodb.MyOodbIndex(value=-323)
110: public String toString();
111:
112: @org.myoodb.MyOodbIndex(value=-324)
113: public boolean equals(Object obj);
114:
115: @org.myoodb.MyOodbIndex(value=-325)
116: public int hashCode();
117:
118: @org.myoodb.MyOodbIndex(value=-326)
119: public java.util.LinkedList collection();
120:
121: @org.myoodb.MyOodbIndex(value=-327)
122: public java.util.ArrayList toArrayList();
123:
124: @org.myoodb.MyOodbIndex(value=-328)
125: public Iterator iterator(); /* Iterator is an allocated db object */
126: }
|