diff options
author | Warren Levy <warrenl@cygnus.com> | 2000-03-17 00:45:06 +0000 |
---|---|---|
committer | Warren Levy <warrenl@gcc.gnu.org> | 2000-03-17 00:45:06 +0000 |
commit | d05165c3933de4ce587e8f45c2e31e9c3dcccba7 (patch) | |
tree | e13c2ee8b0bb648f9f9ab698a7a4d17c7b938323 /libjava/java/util | |
parent | c9869b75ee626214ec24447f33215fb4b6c9f038 (diff) | |
download | gcc-d05165c3933de4ce587e8f45c2e31e9c3dcccba7.zip gcc-d05165c3933de4ce587e8f45c2e31e9c3dcccba7.tar.gz gcc-d05165c3933de4ce587e8f45c2e31e9c3dcccba7.tar.bz2 |
Color.java: New file.
* java/awt/Color.java: New file.
* java/awt/Graphics.java: New file.
* java/awt/Image.java: New file.
* java/awt/Paint.java: New file.
* java/awt/PaintContext.java: New file.
* java/awt/Transparency.java: New file.
* java/util/Collection.java: New file.
* java/util/Comparator.java: New file.
* java/util/Iterator.java: New file.
* java/util/List.java: New file.
* java/util/ListIterator.java: New file.
* Makefile.am: Added above new files.
* Makefile.in: Rebuilt.
* java/awt/Font.java (PLAIN): New field.
(BOLD): New field.
(ITALIC): New field.
(ROMAN_BASELINE): New field.
(CENTER_BASELINE): New field.
(HANGING_BASELINE): New field.
(name): New field.
(style): New field.
(size): New field.
(pointSize): New field.
(Font): Implemented constructor.
(isPlain): Implemented method.
(isBold): Implemented method.
(isItalic): Implemented method.
(getName): Implemented method.
(getStyle): Implemented method.
(getSize): Implemented method.
(getSize2D): Implemented method.
(decode): Stubbed.
* java/awt/Frame.java (getFont): Stubbed.
(postEvent): Stubbed.
(remove): Stubbed.
* java/awt/Menu.java (postEvent): Stubbed.
* java/awt/MenuBar.java (getFont): Stubbed.
(postEvent): Stubbed.
* java/awt/Toolkit.java (getImage): Added abstract method.
From-SVN: r32598
Diffstat (limited to 'libjava/java/util')
-rw-r--r-- | libjava/java/util/Collection.java | 37 | ||||
-rw-r--r-- | libjava/java/util/Comparator.java | 24 | ||||
-rw-r--r-- | libjava/java/util/Iterator.java | 25 | ||||
-rw-r--r-- | libjava/java/util/List.java | 47 | ||||
-rw-r--r-- | libjava/java/util/ListIterator.java | 31 |
5 files changed, 164 insertions, 0 deletions
diff --git a/libjava/java/util/Collection.java b/libjava/java/util/Collection.java new file mode 100644 index 0000000..46da71b --- /dev/null +++ b/libjava/java/util/Collection.java @@ -0,0 +1,37 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.util; + +/** + * @author Warren Levy <warrenl@cygnus.com> + * @date March 16, 2000. + */ +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. + */ + +// JDK1.2 +public interface Collection +{ + public int size(); + public boolean isEmpty(); + public boolean contains(Object o); + public Iterator iterator(); + public Object[] toArray(); + public Object[] toArray(Object[] a); + public boolean add(Object o); + public boolean remove(Object o); + public boolean containsAll(Collection c); + public boolean addAll(Collection c); + public boolean removeAll(Collection c); + public boolean retainAll(Collection c); + public void clear(); + public boolean equals(Object o); + public int hashCode(); +} diff --git a/libjava/java/util/Comparator.java b/libjava/java/util/Comparator.java new file mode 100644 index 0000000..8f114ee --- /dev/null +++ b/libjava/java/util/Comparator.java @@ -0,0 +1,24 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.util; + +/** + * @author Warren Levy <warrenl@cygnus.com> + * @date March 16, 2000. + */ +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. + */ + +// JDK1.2 +public interface Comparator +{ + public int compare(Object o1, Object o2); + public boolean equals(Object obj); +} diff --git a/libjava/java/util/Iterator.java b/libjava/java/util/Iterator.java new file mode 100644 index 0000000..f6942fe --- /dev/null +++ b/libjava/java/util/Iterator.java @@ -0,0 +1,25 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.util; + +/** + * @author Warren Levy <warrenl@cygnus.com> + * @date March 16, 2000. + */ +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. + */ + +// JDK1.2 +public interface Iterator +{ + public boolean hasNext(); + public Object next(); + public void remove(); +} diff --git a/libjava/java/util/List.java b/libjava/java/util/List.java new file mode 100644 index 0000000..ea69217 --- /dev/null +++ b/libjava/java/util/List.java @@ -0,0 +1,47 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.util; + +/** + * @author Warren Levy <warrenl@cygnus.com> + * @date March 16, 2000. + */ +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. + */ + +// JDK1.2 +public interface List extends Collection +{ + public int size(); + public boolean isEmpty(); + public boolean contains(Object o); + public Iterator iterator(); + public Object[] toArray(); + public Object[] toArray(Object[] a); + public boolean add(Object o); + public boolean remove(Object o); + public boolean containsAll(Collection c); + public boolean addAll(Collection c); + public boolean addAll(int index, Collection c); + public boolean removeAll(Collection c); + public boolean retainAll(Collection c); + public void clear(); + public boolean equals(Object o); + public int hashCode(); + public Object get(int index); + public Object set(int index, Object element); + public void add(int index, Object element); + public Object remove(int index); + public int indexOf(Object o); + public int lastIndexOf(Object o); + public ListIterator listIterator(); + public ListIterator listIterator(int index); + public List subList(int fromIndex, int toIndex); +} diff --git a/libjava/java/util/ListIterator.java b/libjava/java/util/ListIterator.java new file mode 100644 index 0000000..8250e2a --- /dev/null +++ b/libjava/java/util/ListIterator.java @@ -0,0 +1,31 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.util; + +/** + * @author Warren Levy <warrenl@cygnus.com> + * @date March 16, 2000. + */ +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. + */ + +// JDK1.2 +public interface ListIterator extends Iterator +{ + public boolean hasNext(); + public Object next(); + public boolean hasPrevious(); + public Object previous(); + public int nextIndex(); + public int previousIndex(); + public void remove(); + public void set(Object o); + public void add(Object o); +} |