Extension SDK 9.0.5

oracle.jdeveloper.vcs.util
Class VCSCollectionUtils

java.lang.Object
  extended byoracle.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.

Extension SDK

 

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