Java Collection Convert to2DIntArray(Collection coll)

Here you can find the source of to2DIntArray(Collection coll)

Description

to D Int Array

License

LGPL

Declaration

public static int[][] to2DIntArray(Collection coll) 

Method Source Code

//package com.java2s;
/*/*from   w  ww  .j av a 2 s  . c o m*/
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */

import java.util.Collection;

public class Main {
    public static int[][] to2DIntArray(Collection coll) {
        return (int[][]) coll.toArray(new int[coll.size()][]);
    }
}

Related

  1. convertCollectionType(Iterable from, C newCollection, Class listClass)
  2. convertToCollection(Object source)
  3. convertToHqlParameters(Collection numbers)
  4. convertToIntArray(Collection col)
  5. convertToPrimitive(Collection info)
  6. to2DStringArray(Collection coll)
  7. toAlphaCollection(Collection collection)
  8. toArray(Collection items, Object array[], boolean convert_to_primitive)
  9. toCollectionString(Collection c, char sep)