Package com.ribs
Class RULists
java.lang.Object
com.ribs.RULists
This class offers a number of useful List utilities used by ribs classes.
 
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ListAdd the given object to the given list (creates a list if given list is null and returns it).static voidaddIfAbsentIdentical(List aList, Object anObj) Adds an object to the given list if identical object is missing.static booleancontainsIdentical(List aList, Object anObj) Returns whehter list contains indentical given object (accepts null list).static ObjectReturns the object at the given index in the given list (or null if list is null or index out of bounds.static ObjectReturns the last object in the given list.static intindexOfIdentical(List aList, Object anObj) Returns index of identical given object in given list.static voidInvokes a given method on every member of a Liststatic voidRemoves the given object from the given list.static voidremoveLast(List aList) Removes the last object from the given list.static intReturns the size of a given list (or zero if null).
- 
Constructor Details- 
RUListspublic RULists()
 
- 
- 
Method Details- 
sizeReturns the size of a given list (or zero if null).
- 
getReturns the object at the given index in the given list (or null if list is null or index out of bounds.
- 
getLastReturns the last object in the given list.
- 
addAdd the given object to the given list (creates a list if given list is null and returns it).
- 
removeRemoves the given object from the given list.
- 
removeLastRemoves the last object from the given list.
- 
indexOfIdenticalReturns index of identical given object in given list.
- 
containsIdenticalReturns whehter list contains indentical given object (accepts null list).
- 
addIfAbsentIdenticalAdds an object to the given list if identical object is missing.
- 
invokeAllInvokes a given method on every member of a List
 
-