Package org.processmining.lpm.util
Class SerializableObjectArrayImpl<K>
- java.lang.Object
-
- org.processmining.lpm.util.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
-
-
Constructor Summary
Constructors Constructor Description SerializableObjectArrayImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(int index, K element)Add the element at the specific indexintaddElement(K element)Add the element to the arrayKgetElement(int index)Return the element at the specific indexintgetSize()voidimportFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String parent, org.processmining.framework.abstractplugins.AbstractImportPlugin importer)voidinit()Initializes the object array.voidremoveElement(int index)Remove the element at the specific indexintremoveElement(K element)Remove the element from the array
-
-
-
Field Detail
-
list
protected java.util.List<K> list
-
-
Method Detail
-
init
public void init()
Description copied from interface:org.processmining.basicutils.models.ObjectArrayInitializes the object array.- Specified by:
initin interfaceorg.processmining.basicutils.models.ObjectArray<K>
-
addElement
public int addElement(K element)
Description copied from interface:org.processmining.basicutils.models.ObjectArrayAdd the element to the array- Specified by:
addElementin interfaceorg.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.ObjectArrayRemove the element from the array- Specified by:
removeElementin interfaceorg.processmining.basicutils.models.ObjectArray<K>- Returns:
-
addElement
public void addElement(int index, K element)Description copied from interface:org.processmining.basicutils.models.ObjectArrayAdd the element at the specific index- Specified by:
addElementin interfaceorg.processmining.basicutils.models.ObjectArray<K>
-
removeElement
public void removeElement(int index)
Description copied from interface:org.processmining.basicutils.models.ObjectArrayRemove the element at the specific index- Specified by:
removeElementin interfaceorg.processmining.basicutils.models.ObjectArray<K>
-
getElement
public K getElement(int index)
Description copied from interface:org.processmining.basicutils.models.ObjectArrayReturn the element at the specific index- Specified by:
getElementin interfaceorg.processmining.basicutils.models.ObjectArray<K>- Returns:
-
getSize
public int getSize()
- Specified by:
getSizein interfaceorg.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
-
-