Example usage for org.apache.commons.collections4 IteratorUtils toArray

List of usage examples for org.apache.commons.collections4 IteratorUtils toArray

Introduction

In this page you can find the example usage for org.apache.commons.collections4 IteratorUtils toArray.

Prototype

public static <E> E[] toArray(final Iterator<? extends E> iterator, final Class<E> arrayClass) 

Source Link

Document

Gets an array based on an iterator.

Usage

From source file:org.craftercms.commons.spring.ApacheCommonsConfiguration2PropertySource.java

@Override
public String[] getPropertyNames() {
    return IteratorUtils.toArray(source.getKeys(), String.class);
}