Java Array arrayOfClassType(T... array)

Here you can find the source of arrayOfClassType(T... array)

Description

array Of Class Type

License

Apache License

Declaration

@SafeVarargs
public static <T> Class<?>[] arrayOfClassType(T... array) 

Method Source Code

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

public class Main {

    @SafeVarargs
    public static <T> Class<?>[] arrayOfClassType(T... array) {
        Class<?>[] clazzs = new Class<?>[array.length];
        for (int i = 0; i < array.length; i++) {
            clazzs[i] = array[i].getClass();
        }//from   w  w  w .  j a  va 2 s.c o  m
        return clazzs;
    }
}

Related

  1. arrayIsHave(String[] strs, String str)
  2. arrayLookup(int[] ar, int keystart, int keyend, int forbidden)
  3. arrayMember(String[] array, String member)
  4. arrayMinus(double[] w, double[] v)
  5. arrayNotEmpty(T[] objects, String message)
  6. arrayOffloatAsCSStrings(float[] ar)
  7. arrayOffloatCoordsAsCSStrings(float[] ar)
  8. arrayPrefixEqual(byte[] a1, int off1, byte[] a2, int off2, int len)
  9. arrayPrint(T[] arr)