Interface IndexValidator


public interface IndexValidator
An interface used as parameter to several methods which perform some actions on data arrays. It is used to decide whether or not an array value shall be taken into account for a particular computation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IndexValidator
    The validator whose validateIndex(int) method always returns true.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validateIndex(int index)
    If the given index or the value at the given index is valid, this method should return true, otherwise false.
  • Field Details

  • Method Details

    • validateIndex

      boolean validateIndex(int index)
      If the given index or the value at the given index is valid, this method should return true, otherwise false.
      Parameters:
      index - the index to validate
      Returns:
      true, if the index or the data behind the index is valid.