Class JobClassList

java.lang.Object
QueueNet.JobClassList

public class JobClassList extends Object
This class implements a list of job classes. Note that only classes of QueueNet package can add or remove objects to/from the list.
Author:
Francesco Radaelli
  • Method Details

    • getFirst

      public JobClass getFirst()
      Gets the first job class in the list.
      Returns:
      Reference to the first job class.
    • getLast

      public JobClass getLast()
      Gets the last job class in the list.
      Returns:
      Reference to the last job class.
    • get

      public JobClass get(int index)
      Gets i-th job class in the list.
      Parameters:
      index - Index of the job class.
      Returns:
      Reference to the i-th job class.
    • get

      public JobClass get(String name)
      Gets the job class with a specific name in the list.
      Parameters:
      name - Name of the job class.
      Returns:
      Reference to the job class.
    • size

      public int size()
      Gets the size of the list.
      Returns:
      Size of the list.
    • listIterator

      public ListIterator<JobClass> listIterator()
      Gets an iterator of the list.
      Returns:
      Iterator of the list.
    • toArray

      public JobClass[] toArray()
      Converts the list into an array of job classes.
      Returns:
      Array of job classes in the list.
    • indexOf

      public int indexOf(JobClass jobClass)
      Gets the index of a job class.
      Parameters:
      jobClass - Reference to the job class.
      Returns:
      Index of the job class.
    • contains

      public boolean contains(JobClass jobClass)
      Used to know if a job class is in the list.
      Parameters:
      jobClass - Reference to the job class.
      Returns:
      true if the job class is in the list.