axiom-core/src/main/java/org/axiom/util/CollectionUtils.java
@SuppressWarnings({"unchecked"})
    public static <T> Collection<T> typedCollection(final Collection collection, Class<T> type) {
        final Collection runtimeCheckedCollection =
            org.apache.commons.collections.CollectionUtils.typedCollection(collection, type);
        return new LinkedList<T>(runtimeCheckedCollection);
    }
/**
     * A generic wrap around the commons collections class/method of the same name.
     * @param collection The collection to limit to a specific type
     * @param type The type of objects which may be added to the collection
     * @param <T> The type of {@code type}.
     * @return A new, generic collection containing all the underlying items from the
     * orginal {@code collection} which are of the requisite type.
     */
A generic wrap around the commons collections class/method of the same name.
@param collection The collection to limit to a specific type
@param type The type of objects which may be added to the collection
@param  The type of  type.
@return A new, generic collection containing all the underlying items from the
orginal  collection which are of the requisite type.
A generic wrap around the commons collections class / method of the same name . @param collection The collection to limit to a specific type @param type The type of objects which may be added to the collection @param The type of type . @return A new generic collection containing all the underlying items from the orginal collection which are of the requisite type .
@SuppressWarnings({"unchecked"})
    public static <T> Collection<T> typedCollection(final Collection collection, Class<T> type) {
        final Collection runtimeCheckedCollection =
            org.apache.commons.collections.CollectionUtils.typedCollection(collection, type);
        return new LinkedList<T>(runtimeCheckedCollection);
    }
@ SuppressWarnings ( { "unchecked" } ) public static < T > Collection < T > typedCollection ( final Collection collection , Class < T > type ) { final Collection runtimeCheckedCollection = org . apache . commons . collections . CollectionUtils . typedCollection ( collection , type ) ; return new LinkedList < T > ( runtimeCheckedCollection ) ; }
A generic wrap around the commons collections class/method of the same name.
A generic wrap around the commons collections class / method of the same name .