Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.vcs.util
Class VCSCollectionUtils

java.lang.Object
  extended by oracle.jdeveloper.vcs.util.VCSCollectionUtils

public final class VCSCollectionUtils
extends java.lang.Object

Utility class for collection operations.

Since:
9.0.5

Method Summary
static java.lang.Object[] toArrayType(java.util.Collection<?> c, java.lang.Class type)
          Converts the given collection to an array with the specified component type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toArrayType

public static final java.lang.Object[] toArrayType(java.util.Collection<?> c,
                                                   java.lang.Class type)
Converts the given collection to an array with the specified component type. This is functionally different from a collection's toArray() method - elements of the collection which are not instances of the given type will not form part of the resulting array.

Parameters:
c - a collection to convert.
type - a target array component type.
Returns:
return the resulting array.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.