Java Collection Convert convertToPrimitive(Collection info)

Here you can find the source of convertToPrimitive(Collection info)

Description

convert To Primitive

License

LGPL

Declaration

public static <T> T[] convertToPrimitive(Collection<T> info) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.Collection;

public class Main {
    public static <T> T[] convertToPrimitive(Collection<T> info) {
        return (T[]) info.toArray();
    }// w  ww.  ja v a  2s .c o  m
}

Related

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