Class IdentifyFromIteration<T>

Object
IdentifyFromIteration<T>
Type Parameters:
T - element-type to be identified.
All Implemented Interfaces:
IdentifierGetter<T>

public class IdentifyFromIteration<T> extends Object implements IdentifierGetter<T>
Identify an element uniquely only by its iteration timepoint.
Author:
Owen Feehan
  • Constructor Details

    • IdentifyFromIteration

      public IdentifyFromIteration()
  • Method Details

    • getIdentifier

      public int getIdentifier(T element, int iteration)
      Description copied from interface: IdentifierGetter
      Gets the unique identifier.
      Specified by:
      getIdentifier in interface IdentifierGetter<T>
      Parameters:
      element - the element, that may or may not be used to form the identifier
      iteration - the current iteration timepoint, that may or may not be used to form the identifier
      Returns:
      the unique identifier