Codota Logo
ConstructorUtils.isClassMap
Code IndexAdd Codota to your IDE (free)

How to use
isClassMap
method
in
org.azeckoski.reflectutils.ConstructorUtils

Best Java code snippets using org.azeckoski.reflectutils.ConstructorUtils.isClassMap (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

/**
 * Determine if an object is a map
 * @param object any object
 * @return true if the object is a map
 */
private boolean isObjectMap(Object object) {
  boolean map = false;
  if (object != null) {
    Class clazz = object.getClass();
    map = ConstructorUtils.isClassMap(clazz);
  }
  return map;
}
origin: azeckoski/reflectutils

/**
 * A simple but efficient method for getting the interfaces for a class type,
 * this has some shortcuts for the common types like maps, lists, etc.<br/>
 * Only returns the interfaces for the current type and not for all nested types
 * 
 * @param type any class type
 * @return the list of interfaces (empty if none)
 */
public static List<Class<?>> getInterfacesForClass(Class<?> type) {
  ArrayList<Class<?>> interfaces = new ArrayList<Class<?>>();
  // find the actual interfaces from the class itself
  for (Class<?> iface : type.getInterfaces()) {
    interfaces.add(iface);
  }
  // add in the collection interface if this is a collection
  if ( isClassCollection(type) ) {
    if ( isClassList(type) ) {
      interfaces.add(List.class);
    } else if ( Set.class.isAssignableFrom(type)) {
      interfaces.add(Set.class);
    }
    interfaces.add(Collection.class);
  } else if ( isClassMap(type) ) {
    interfaces.add(Map.class);
  }
  return interfaces;
}
origin: org.azeckoski/reflectutils

/**
 * A simple but efficient method for getting the interfaces for a class type,
 * this has some shortcuts for the common types like maps, lists, etc.<br/>
 * Only returns the interfaces for the current type and not for all nested types
 * 
 * @param type any class type
 * @return the list of interfaces (empty if none)
 */
public static List<Class<?>> getInterfacesForClass(Class<?> type) {
  ArrayList<Class<?>> interfaces = new ArrayList<Class<?>>();
  // find the actual interfaces from the class itself
  for (Class<?> iface : type.getInterfaces()) {
    interfaces.add(iface);
  }
  // add in the collection interface if this is a collection
  if ( isClassCollection(type) ) {
    if ( isClassList(type) ) {
      interfaces.add(List.class);
    } else if ( Set.class.isAssignableFrom(type)) {
      interfaces.add(Set.class);
    }
    interfaces.add(Collection.class);
  } else if ( isClassMap(type) ) {
    interfaces.add(Map.class);
  }
  return interfaces;
}
origin: org.azeckoski/reflectutils

} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: org.azeckoski/reflectutils

Map<String, Object> map = null;
if (clone != null) {
  if ( ConstructorUtils.isClassMap(clone.getClass())) {
    map = (Map<String, Object>) clone;
  } else {
origin: azeckoski/reflectutils

Map<String, Object> map = null;
if (clone != null) {
  if ( ConstructorUtils.isClassMap(clone.getClass())) {
    map = (Map<String, Object>) clone;
  } else {
origin: org.azeckoski/reflectutils

} else if (Set.class.isAssignableFrom(type)) {
  toType = (Class<T>) HashSet.class;
} else if ( isClassMap(type) ) {
  toType = (Class<T>) ArrayOrderedMap.class;
} else if ( isClassCollection(type) ) {
origin: azeckoski/reflectutils

} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: azeckoski/reflectutils

} else if (Set.class.isAssignableFrom(type)) {
  toType = (Class<T>) HashSet.class;
} else if ( isClassMap(type) ) {
  toType = (Class<T>) ArrayOrderedMap.class;
} else if ( isClassCollection(type) ) {
origin: org.azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this is a collection, map, or array, 
 * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array)
 */
public static boolean isClassObjectHolder(Class<?> type) {
  checkNull(type);
  boolean holder = false;
  if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) {
    holder = true;
  }
  return holder;
}
origin: azeckoski/reflectutils

/**
 * @param type any class
 * @return true if this is a collection, map, or array, 
 * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array)
 */
public static boolean isClassObjectHolder(Class<?> type) {
  checkNull(type);
  boolean holder = false;
  if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) {
    holder = true;
  }
  return holder;
}
origin: azeckoski/reflectutils

    i++;
} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: org.azeckoski/reflectutils

    i++;
} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: org.azeckoski/reflectutils

    i++;
} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: azeckoski/reflectutils

    i++;
} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: org.azeckoski/reflectutils

if ( ConstructorUtils.isClassMap(type)) {
  Map<String, Object> m = (Map)container.getContainer();
  if (m.containsKey(key)) {
origin: azeckoski/reflectutils

if ( ConstructorUtils.isClassMap(type)) {
  Map<String, Object> m = (Map)container.getContainer();
  if (m.containsKey(key)) {
origin: org.azeckoski/reflectutils

} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: azeckoski/reflectutils

} else if ( ConstructorUtils.isClassMap(fromType) ) {
origin: sakaiproject/sakai

  sb.append("        <type>array</type>\n");
  sb.append("        <componentType>"+ArrayUtils.type((Object[])entity).getName()+"</componentType>\n");
} else if (ConstructorUtils.isClassMap(entityType)) {
  sb.append("        <type>map</type>\n");
  String cType = "Component Class: " + ArrayUtils.type((Object[])entity).getName();
  sb.append( makeResolveType("array", cType, locale));
} else if (ConstructorUtils.isClassMap(entityType)) {
org.azeckoski.reflectutilsConstructorUtilsisClassMap

Popular methods of ConstructorUtils

  • isClassBean
  • isClassSimple
  • isClassArray
  • isClassCollection
  • <init>
    Empty constructor WARNING: use the #getInstance() method to get this rather than recreating it over
  • checkNull
  • classAssignable
    Checks if assignFrom is assignable to assignTo (i.e. this is OK: assignFrom b; assignTo a = (assignT
  • classEquals
    Will compare 2 classes for equality which will make a friendly comparison of types and will happily
  • constructClass
    Construct an object for the class of the given type with the given params (arguments), arguments mus
  • getClassDataCacher
  • getClassFromInterface
    Gets a valid class which can be constructed from an interface or special cases which cannot be const
  • getDefaultValue
    Get the default value for for a type if one is available OR null if there is no default (since null
  • getClassFromInterface,
  • getDefaultValue,
  • getExtendAndInterfacesForClass,
  • getImmutableDefaults,
  • getImmutableTypes,
  • getInstance,
  • getInterfacesForClass,
  • getPrimitiveDefaults,
  • getPrimitiveToWrapper

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now