classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [generics] Add remaining missing method to java.util.Collec


From: Andrew John Hughes
Subject: [cp-patches] [generics] Add remaining missing method to java.util.Collections
Date: Tue, 20 Sep 2005 00:28:13 +0100
User-agent: Mutt/1.5.9i

I'm committing the attached patch to add the remaining missing 
java.util.Collections
methods.  This fixes PR#22921.

Changelog:

2005-09-19  Andrew John Hughes  <address@hidden>

        * java/util/Collections.java:
        Fixes Bug #PR22921.
        (emptySet()): Implemented.
        (emptyList()): Implemented.
        (emptyMap()): Implemented.
        (rotate(List<?>,int)): Fixed signature.
        (shuffle(List<?>)): Fixed signature.
        (shuffle(List<?>,Random)): Fixed signature.
        (frequency(Collection<?>,Object)): Documented.
        (addAll(Collection<? super T>, T... a)): Implemented.
        (disjoint(Collection<?>,Collection<?>)): Implemented.
        (swap(List<?>,int,int)): Fixed signature.
        (checkedCollection(Collection<E>,Class<E>)): Implemented.
        (Collections.CheckedCollection): New inner class.
        (Collections.CheckedIterator): New inner class.
        (checkedList(List<E>, Class<E>)): Implemented.
        (Collections.CheckedList): New inner class.
        (Collections.CheckedRandomAccessList): New inner class.
        (Collections.CheckedListIterator): New inner class.
        (checkedMap(Map<K,V>,Class<K>,Class<V>)): Implemented.
        (Collections.CheckedMap): New inner class.
        (checkedSet(Set<E>,Class<E>)): Implemented.
        (Collections.CheckedSet): New inner class.
        (checkedSortedMap(SortedMap<K,V>,Class<K>,Class<V>)): Implemented.
        (Collections.CheckedSortedMap): New inner class.
        (checkedSortedSet(SortedSet<E>,Class<E>)): Implemented.
        (Collections.CheckedSortedSet): New inner class.

Cheers,
-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

Attachment: collections-01.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]