Example usage for org.apache.wicket.util.lang Generics iterator

List of usage examples for org.apache.wicket.util.lang Generics iterator

Introduction

In this page you can find the example usage for org.apache.wicket.util.lang Generics iterator.

Prototype

@SuppressWarnings("unchecked")
public static <T> Iterator<T> iterator(final Iterator<?> delegate) 

Source Link

Document

Silences generics warning when need to cast iterator types

Usage

From source file:org.cyclop.web.components.iterablegrid.GridView.java

License:Apache License

/** @see org.apache.wicket.markup.repeater.AbstractPageableView#getItems() */
@Override/*from w ww. ja v a2s  . com*/
public Iterator<Item<T>> getItems() {
    Iterator<MarkupContainer> rows = Generics.iterator(iterator());
    return new ItemsIterator<T>(rows);
}