|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IteratorWrapper.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Joey and its relative products are published under the terms
|
|
| 3 |
* of the Apache Software License.
|
|
| 4 |
*/
|
|
| 5 |
package org.asyrinx.brownie.core.collection.wrapper;
|
|
| 6 |
|
|
| 7 |
import java.util.Iterator;
|
|
| 8 |
|
|
| 9 |
import org.asyrinx.brownie.core.util.Wrapper;
|
|
| 10 |
|
|
| 11 |
/**
|
|
| 12 |
* @author Akima
|
|
| 13 |
*/
|
|
| 14 |
public class IteratorWrapper extends Wrapper implements Iterator { |
|
| 15 |
|
|
| 16 |
/**
|
|
| 17 |
* Constructor for IteratorWrapper.
|
|
| 18 |
*/
|
|
| 19 | 0 |
public IteratorWrapper(Iterator iterator) {
|
| 20 | 0 |
super(iterator);
|
| 21 | 0 |
this.iterator = iterator;
|
| 22 |
} |
|
| 23 |
|
|
| 24 |
protected final Iterator iterator;
|
|
| 25 |
|
|
| 26 |
/**
|
|
| 27 |
* @see java.util.Iterator#hasNext()
|
|
| 28 |
*/
|
|
| 29 | 0 |
public boolean hasNext() { |
| 30 | 0 |
return iterator.hasNext();
|
| 31 |
} |
|
| 32 |
|
|
| 33 |
/**
|
|
| 34 |
* @see java.util.Iterator#next()
|
|
| 35 |
*/
|
|
| 36 | 0 |
public Object next() {
|
| 37 | 0 |
return iterator.next();
|
| 38 |
} |
|
| 39 |
|
|
| 40 |
/**
|
|
| 41 |
* @see java.util.Iterator#remove()
|
|
| 42 |
*/
|
|
| 43 | 0 |
public void remove() { |
| 44 | 0 |
iterator.remove(); |
| 45 |
} |
|
| 46 |
|
|
| 47 |
} |
|
||||||||||