Java Object Type Case cast(Class c)

Here you can find the source of cast(Class c)

Description

cast

License

Open Source License

Declaration

static String cast(Class c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static String cast(Class c) {
        if (c.isPrimitive()) {
            return "";
        }//from  www.  java2 s.  co m
        return "(" + c.getCanonicalName() + ")";
    }
}

Related

  1. cast(B b0, Class cls)
  2. cast(byte b)
  3. cast(byte[] bytes)
  4. cast(Class c, Object o)
  5. cast(Class clazz, Object o, T def)
  6. cast(Class clazz, Object obj)
  7. cast(Class clazz, Object object)