commons.java subversion repository

sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 678 - https://secure.bioinfweb.info/Code/svn/commons.java / trunk / main / info.bioinfweb.commons.core / src / info / bioinfweb / commons / collections / CollectionUtils.java
Unified Diff View - CollectionUtils.java
/trunk/main/info.bioinfweb.commons.core/src/info/bioinfweb/commons/collections/CollectionUtils.java @ revision 677
/trunk/main/info.bioinfweb.commons.core/src/info/bioinfweb/commons/collections/CollectionUtils.java @ revision 678
@@ -20,6 +20,7 @@ import java.util.Iterator; +import java.util.List; @@ -42,4 +43,9 @@    }   };  } + + + public static <E> E getLastElement(List<E> list) { +  return list.get(list.size() - 1); + } }


feed icon

sventon 2.5.1

bioinfweb RSS feed bioinfweb on twitter bioinfweb.commons.java on GitHub
bioinfweb - Biology & Informatics Website