![JAR search and dependency download from the Maven repository](/logo.png)
net.digitalid.utility.collections.iterator.FreezableIteratorSubclass Maven / Gradle / Ivy
The newest version!
package net.digitalid.utility.collections.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import javax.annotation.Generated;
import net.digitalid.utility.collections.collection.FreezableCollection;
import net.digitalid.utility.contracts.Ensure;
@SuppressWarnings("null")
@Generated(value = "net.digitalid.utility.processor.generator.JavaFileGenerator", date = "2017-03-26T11:54:22.024+0200")
class FreezableIteratorSubclass extends FreezableIterator {
/* -------------------------------------------------- Iterator -------------------------------------------------- */
private final Iterator iterator;
@Override
Iterator getIterator() {
Iterator result = this.iterator;
Ensure.that(result != null).orThrow("The result may not be null.", result);
return result;
}
/* -------------------------------------------------- Collection -------------------------------------------------- */
private final FreezableCollection collection;
@Override
FreezableCollection getCollection() {
FreezableCollection result = this.collection;
Ensure.that(result != null).orThrow("The result may not be null.", result);
return result;
}
/* -------------------------------------------------- Constructors -------------------------------------------------- */
FreezableIteratorSubclass(Iterator iterator, FreezableCollection collection) {
super();
this.iterator = iterator;
this.collection = collection;
}
/* -------------------------------------------------- Overridden Methods -------------------------------------------------- */
@Override
public boolean hasNext() {
boolean result = super.hasNext();
return result;
}
@Override
public E next() throws NoSuchElementException {
E result = super.next();
return result;
}
@Override
public void remove() throws IllegalStateException {
super.remove();
}
/* -------------------------------------------------- Implement Methods -------------------------------------------------- */
/* -------------------------------------------------- Generated Methods -------------------------------------------------- */
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy