| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Class com.objectspace.jgl.algorithms.Filling
java.lang.Object
|
+----com.objectspace.jgl.algorithms.Filling
- public final class Filling
- extends Object
The Filling class contains generic filling algorithms.
- See Also:
- Filling examples
-
fill(Container, Object)
- Fill a container with a particular value.
-
fill(ForwardIterator, ForwardIterator, Object)
- Fill a specified range with a particular value.
-
fillN(OutputIterator, int, Object)
- Assign an object to a number of elements starting at a specified location.
fill
public static void fill(ForwardIterator first,
ForwardIterator last,
Object object)
- Fill a specified range with a particular value.
- Parameters:
- first - An iterator positioned at the first element of the sequence.
- last - An iterator positioned immediately after the last element of the sequence.
- object - The object to fill the sequence with.
- Throws: IllegalArgumentException
- If the iterators are incompatible.
fill
public static void fill(Container container,
Object object)
- Fill a container with a particular value.
- Parameters:
- container - The container.
- object - The object to fill the container with.
fillN
public static void fillN(OutputIterator output,
int n,
Object object)
- Assign an object to a number of elements starting at a specified location.
- Parameters:
- output - An iterator positioned at the first element of the sequence.
- n - The number of objects to assign.
- object - The object to fill the sequence with.
All Packages Class Hierarchy This Package Previous Next Index