/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
CollectionType collectionType = CollectionType.findType(collectionTypeName); if (collectionType == null) { collectionType = CollectionType.getType(collectionTypeName);
CollectionType collectionType = CollectionType.findType(collectionTypeName); if (collectionType == null) { collectionType = CollectionType.getType(collectionTypeName);
CollectionType collectionType = CollectionType.findType( collectionTypeName); if (collectionType == null) { collectionType = CollectionType.getType( collectionTypeName );