Interface PositionalElement<T extends PositionalElement<T>>

Type Parameters:
T - the type of this element.
All Known Subinterfaces:
Task<T>, TaskNode<T>
All Known Implementing Classes:
AbstractTask, AbstractTaskNode, CommandLineTask, CrossoverTask, FitnessTask, JPPFAnnotatedTask, JPPFExceptionResult, JPPFExceptionResultEx, JPPFTask, ScriptedTask, TaskGraph.Node

public interface PositionalElement<T extends PositionalElement<T>>
Interface representig an object that cn be accessed by its position in an ordered set.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the position of this element in its container.
    default T
    setPosition(int position)
    Set the position of this element in its container.
  • Method Details

    • getPosition

      int getPosition()
      Returns the position of this element in its container.
      Returns:
      the position of this element as an int.
    • setPosition

      default T setPosition(int position)
      Set the position of this element in its container.
      Parameters:
      position - the position of this task as an int.
      Returns:
      this element, for method call chaining.