/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
public List makeEmptyList() { return TypedList.decorate(new ArrayList(), Object.class); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
/** * Returns a typed list backed by the given list. * <p> * Only objects of the specified type can be added to the list. * * @param list the list to limit to a specific type, must not be null * @param type the type of objects which may be added to the list * @return a typed list backed by the specified list */ public static List typedList(List list, Class type) { return TypedList.decorate(list, type); }
@SuppressWarnings("unchecked") public RefineConflictsVisitor() { conflictingArtifacts = TypedList.decorate( new ArrayList<ArtifactReference>(), ArtifactReference.class ); }