1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-02-07 00:32:59 +00:00
parent a994a84977
commit 7941b24080

View file

@ -14,7 +14,6 @@ import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
/**
* Useful utility methods for dealing with Collections.
*
@ -26,7 +25,6 @@ public final class CollectionUtils {
// this class has just static utility methods
}
/**
* Returns an iterator that iterates backwards over the given list.
* The remove() method is not implemented and will throw UnsupportedOperationException.
@ -50,12 +48,11 @@ public final class CollectionUtils {
};
}
/**
* Allows a foreach loop to iterate backwards over a list
* from the end to the start.
*
* eg)
* e.g.
* for(Object o : reverseIterable(list)) { ... }
*
* @throws NullPointerException if list is null
@ -64,14 +61,13 @@ public final class CollectionUtils {
return iterable(reverseIterator(list));
}
/**
* Creates an Iterable instance that just returns
* the given Iterator from its iterator() method.
*
* This is useful for using an iterator in a foreach loop directly.
*
* eg)
* e.g.
*
* for(Object o : iterable(list.listIterator())) {
* // do something
@ -90,8 +86,6 @@ public final class CollectionUtils {
};
}
/**
* Finds the first object in the heterogeneous list that is an instance of
* the given class, removes it from the list, and returns it.