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 Summary
Constructors -
Method Summary
Modifier 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
-
RULists
public RULists()
-
-
Method Details
-
size
Returns the size of a given list (or zero if null). -
get
Returns the object at the given index in the given list (or null if list is null or index out of bounds. -
getLast
Returns the last object in the given list. -
add
Add the given object to the given list (creates a list if given list is null and returns it). -
remove
Removes the given object from the given list. -
removeLast
Removes the last object from the given list. -
indexOfIdentical
Returns index of identical given object in given list. -
containsIdentical
Returns whehter list contains indentical given object (accepts null list). -
addIfAbsentIdentical
Adds an object to the given list if identical object is missing. -
invokeAll
Invokes a given method on every member of a List
-