ListUtils Page JAVA

ListUtils Page

Ever have a list, that you need to paginate through? I certainly have, I created a simple method to ListUtils to make it easier. /** * Performs pagination on the List, returning the indicated page of elements, or an empty ist. * @param list List to p… JAVA

Sometimes you need to guarantee a list is safe to use. A simple method can make sure your safe to use the list, or have an empty list that would be safe for use. /** * Guarantees a list will be safe to use, even if null. * @param list List to check i…
ListUtils.size() JAVA


Simple yet handy method for your ListUtils class. Handle if null, and return the number of elements in the list. Effective and simple.