public class RULists
extends java.lang.Object
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill
Constructor and Description |
---|
RULists() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
add(java.util.List aList,
java.lang.Object anObj)
Add the given object to the given list (creates a list if given list is null and returns it).
|
static void |
addIfAbsentIdentical(java.util.List aList,
java.lang.Object anObj)
Adds an object to the given list if identical object is missing.
|
static boolean |
containsIdentical(java.util.List aList,
java.lang.Object anObj)
Returns whehter list contains indentical given object (accepts null list).
|
static java.lang.Object |
get(java.util.List aList,
int anIndex)
Returns the object at the given index in the given list (or null if list is null or index out of bounds.
|
static java.lang.Object |
getLast(java.util.List aList)
Returns the last object in the given list.
|
static int |
indexOfIdentical(java.util.List aList,
java.lang.Object anObj)
Returns index of identical given object in given list.
|
static void |
invokeAll(java.util.List targets,
java.lang.String aMethod,
java.lang.Object aValue,
java.lang.Class aClass)
Invokes a given method on every member of a List
|
static void |
remove(java.util.List aList,
java.lang.Object anObj)
Removes the given object from the given list.
|
static void |
removeLast(java.util.List aList)
Removes the last object from the given list.
|
static int |
size(java.util.List aList)
Returns the size of a given list (or zero if null).
|
public static int size(java.util.List aList)
public static java.lang.Object get(java.util.List aList, int anIndex)
public static java.lang.Object getLast(java.util.List aList)
public static java.util.List add(java.util.List aList, java.lang.Object anObj)
public static void remove(java.util.List aList, java.lang.Object anObj)
public static void removeLast(java.util.List aList)
public static int indexOfIdentical(java.util.List aList, java.lang.Object anObj)
public static boolean containsIdentical(java.util.List aList, java.lang.Object anObj)
public static void addIfAbsentIdentical(java.util.List aList, java.lang.Object anObj)
public static void invokeAll(java.util.List targets, java.lang.String aMethod, java.lang.Object aValue, java.lang.Class aClass)