org.apache.wicket.util.lang.Generics.iterator()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.apache.wicket.util.lang.Generics.iterator()方法的一些代码示例,展示了Generics.iterator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Generics.iterator()方法的具体详情如下:
包路径:org.apache.wicket.util.lang.Generics
类名称:Generics
方法名:iterator

Generics.iterator介绍

[英]Silences generics warning when need to cast iterator types
[中]当需要强制转换迭代器类型时,取消泛型警告

代码示例

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * @return iterator over item instances that exist as children of this view
 */
public Iterator<Item<T>> getItems()
{
  return Generics.iterator(iterator());
}

代码示例来源:origin: apache/wicket

/**
 * @return iterator over item instances that exist as children of this view
 */
public Iterator<Item<T>> getItems()
{
  return Generics.iterator(iterator());
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @return iterator over item instances that exist as children of this view
 */
public Iterator<Item<T>> getItems()
{
  return Generics.iterator(iterator());
}

代码示例来源:origin: maciejmiklas/cyclop

private void findNext() {
  next = null;
  if (cells != null && cells.hasNext()) {
    next = cells.next();
  } else {
    while (rows.hasNext()) {
      MarkupContainer row = rows.next();
      final Iterator<? extends Component> rawCells;
      rawCells = ((MarkupContainer) row.iterator().next()).iterator();
      cells = Generics.iterator(rawCells);
      if (cells.hasNext()) {
        next = cells.next();
        break;
      }
    }
  }
}

代码示例来源:origin: org.apache.wicket/wicket-core

private void findNext()
{
  next = null;
  if (cells != null && cells.hasNext())
  {
    next = cells.next();
  }
  else
  {
    while (rows.hasNext())
    {
      MarkupContainer row = rows.next();
      final Iterator<? extends Component> rawCells;
      rawCells = ((MarkupContainer)row.iterator().next()).iterator();
      cells = Generics.iterator(rawCells);
      if (cells.hasNext())
      {
        next = cells.next();
        break;
      }
    }
  }
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

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

代码示例来源:origin: apache/wicket

private void findNext()
{
  next = null;
  if (cells != null && cells.hasNext())
  {
    next = cells.next();
  }
  else
  {
    while (rows.hasNext())
    {
      MarkupContainer row = rows.next();
      final Iterator<? extends Component> rawCells;
      rawCells = ((MarkupContainer)row.iterator().next()).iterator();
      cells = Generics.iterator(rawCells);
      if (cells.hasNext())
      {
        next = cells.next();
        break;
      }
    }
  }
}

代码示例来源:origin: org.apache.wicket/wicket-core

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

代码示例来源:origin: apache/wicket

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

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

private void findNext()
{
  next = null;
  if (cells != null && cells.hasNext())
  {
    next = cells.next();
  }
  else
  {
    while (rows.hasNext())
    {
      MarkupContainer row = rows.next();
      final Iterator<? extends Component> rawCells;
      rawCells = ((MarkupContainer)row.iterator().next()).iterator();
      cells = Generics.iterator(rawCells);
      if (cells.hasNext())
      {
        next = cells.next();
        break;
      }
    }
  }
}

代码示例来源:origin: maciejmiklas/cyclop

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

相关文章