Class 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
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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