Class JobClassList
java.lang.Object
QueueNet.JobClassList
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 Summary
Modifier and TypeMethodDescriptionbooleanUsed to know if a job class is in the list.get(int index) Gets i-th job class in the list.Gets the job class with a specific name in the list.getFirst()Gets the first job class in the list.getLast()Gets the last job class in the list.intGets the index of a job class.Gets an iterator of the list.intsize()Gets the size of the list.JobClass[]toArray()Converts the list into an array of job classes.
-
Method Details
-
getFirst
Gets the first job class in the list.- Returns:
- Reference to the first job class.
-
getLast
Gets the last job class in the list.- Returns:
- Reference to the last job class.
-
get
Gets i-th job class in the list.- Parameters:
index- Index of the job class.- Returns:
- Reference to the i-th job class.
-
get
-
size
public int size()Gets the size of the list.- Returns:
- Size of the list.
-
listIterator
Gets an iterator of the list.- Returns:
- Iterator of the list.
-
toArray
Converts the list into an array of job classes.- Returns:
- Array of job classes in the list.
-
indexOf
Gets the index of a job class.- Parameters:
jobClass- Reference to the job class.- Returns:
- Index of the job class.
-
contains
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.
-