List of usage examples for java.util.concurrent CopyOnWriteArrayList sort
public void sort(Comparator<? super E> c)
From source file:edu.temple.cis3238.wiki.vo.TopicVO.java
/** * * @param tagsCollection/*from w ww . j av a 2 s . c om*/ */ public void setTagsCollection(CopyOnWriteArrayList<TagsVO> tagsCollection) { if (tagsCollection != null && !tagsCollection.isEmpty()) { this.tagsCollection = new CopyOnWriteArrayList<TagsVO>(); tagsCollection.sort(new TagsVO()); this.tagsCollection.addAll(tagsCollection); } }