Class SerializableObjectArrayImpl<K>

  • All Implemented Interfaces:
    java.io.Serializable, org.processmining.basicutils.models.ObjectArray<K>
    Direct Known Subclasses:
    LocalProcessModelRanking, UtilityLocalProcessModelRanking

    public abstract class SerializableObjectArrayImpl<K>
    extends java.lang.Object
    implements org.processmining.basicutils.models.ObjectArray<K>, java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<K> list  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addElement​(int index, K element)
      Add the element at the specific index
      int addElement​(K element)
      Add the element to the array
      K getElement​(int index)
      Return the element at the specific index
      int getSize()  
      void importFromStream​(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String parent, org.processmining.framework.abstractplugins.AbstractImportPlugin importer)  
      void init()
      Initializes the object array.
      void removeElement​(int index)
      Remove the element at the specific index
      int removeElement​(K element)
      Remove the element from the array
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.processmining.basicutils.models.ObjectArray

        exportToFile, importFromStream
    • Field Detail

      • list

        protected java.util.List<K> list
    • Constructor Detail

      • SerializableObjectArrayImpl

        public SerializableObjectArrayImpl()
    • Method Detail

      • init

        public void init()
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Initializes the object array.
        Specified by:
        init in interface org.processmining.basicutils.models.ObjectArray<K>
      • addElement

        public int addElement​(K element)
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Add the element to the array
        Specified by:
        addElement in interface org.processmining.basicutils.models.ObjectArray<K>
        Returns:
        the index of the element
      • removeElement

        public int removeElement​(K element)
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Remove the element from the array
        Specified by:
        removeElement in interface org.processmining.basicutils.models.ObjectArray<K>
        Returns:
      • addElement

        public void addElement​(int index,
                               K element)
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Add the element at the specific index
        Specified by:
        addElement in interface org.processmining.basicutils.models.ObjectArray<K>
      • removeElement

        public void removeElement​(int index)
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Remove the element at the specific index
        Specified by:
        removeElement in interface org.processmining.basicutils.models.ObjectArray<K>
      • getElement

        public K getElement​(int index)
        Description copied from interface: org.processmining.basicutils.models.ObjectArray
        Return the element at the specific index
        Specified by:
        getElement in interface org.processmining.basicutils.models.ObjectArray<K>
        Returns:
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.processmining.basicutils.models.ObjectArray<K>
      • importFromStream

        public void importFromStream​(org.processmining.framework.plugin.PluginContext context,
                                     java.io.InputStream input,
                                     java.lang.String parent,
                                     org.processmining.framework.abstractplugins.AbstractImportPlugin importer)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception