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 List
Add the given object to the given list (creates a list if given list is null and returns it).static void
addIfAbsentIdentical
(List aList, Object anObj) Adds an object to the given list if identical object is missing.static boolean
containsIdentical
(List aList, Object anObj) Returns whehter list contains indentical given object (accepts null list).static Object
Returns the object at the given index in the given list (or null if list is null or index out of bounds.static Object
Returns the last object in the given list.static int
indexOfIdentical
(List aList, Object anObj) Returns index of identical given object in given list.static void
Invokes a given method on every member of a Liststatic void
Removes the given object from the given list.static void
removeLast
(List aList) Removes the last object from the given list.static int
Returns 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
-