Java Class Type Check isMap(Class o)

Here you can find the source of isMap(Class o)

Description

is Map

License

Open Source License

Declaration

public static boolean isMap(Class<?> o) 

Method Source Code

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

import java.util.*;

public class Main {
    public static boolean isMap(Object o) {
        return isMap(o.getClass());
    }//from w  ww.  j av  a 2s .com

    public static boolean isMap(Class<?> o) {
        return Map.class.isAssignableFrom(o);
    }
}

Related

  1. isComposite(Class cls)
  2. isEmptyCollectionOrMap(Object content, Class type)
  3. isInPrimitiveWrapperType(Class type)
  4. isJavaImmutable(Class cls)
  5. isLogicalPrimitive(Class c)
  6. isMapType(final Class type)
  7. isMethodReturnTypeValid(Class cls)
  8. isNumber(Class type)
  9. isNumberType(Class type)