Package com.tivoli.am.fim.registrations
Class MechanismList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Mechanism>
-
- com.tivoli.am.fim.registrations.MechanismList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<Mechanism>
,java.util.Collection<Mechanism>
,java.util.List<Mechanism>
,java.util.RandomAccess
public class MechanismList extends java.util.ArrayList<Mechanism>
A helper class extending an ArrayList of Mechanisms to allow quality of life methods to ease debugging tasks.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONArray
toJson()
Get a JSON formatted representation of this list of Mechanism objects.java.lang.String
toString()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractCollection<Mechanism>
-
toJson
public JSONArray toJson()
Get a JSON formatted representation of this list of Mechanism objects.- Returns:
- A JSONArray representation of all
Mechanism
objects in this list. - See Also:
- IBM JSONArray
-
-