Package com.hannonhill.cascade.velocity
Class ListTool
- java.lang.Object
-
- com.hannonhill.cascade.velocity.ListTool
-
public class ListTool extends java.lang.Object
Tool with utility methods that deal with lists
-
-
Constructor Summary
Constructors Constructor Description ListTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.Object
getProperty(java.lang.Object object, java.lang.String propertyName)
Safely retrieves a property.<T> java.util.List<T>
removeNull(java.util.List<T> list, java.lang.String propertyName)
<T> java.util.List<T>
reverse(java.util.List<T> original)
<T> java.util.List<T>
shuffle(java.util.List<T> original)
<T> java.util.List<T>
toList(T[] original)
-
-
-
Method Detail
-
reverse
public <T> java.util.List<T> reverse(java.util.List<T> original)
-
removeNull
public <T> java.util.List<T> removeNull(java.util.List<T> list, java.lang.String propertyName)
-
toList
public <T> java.util.List<T> toList(T[] original)
-
shuffle
public <T> java.util.List<T> shuffle(java.util.List<T> original)
-
getProperty
protected static java.lang.Object getProperty(java.lang.Object object, java.lang.String propertyName)
Safely retrieves a property. Returns null if the property cannot be retrieved
-
-