Package org.esa.snap.core.util.math
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
FieldsModifier and TypeFieldDescriptionstatic final IndexValidatorThe validator whosevalidateIndex(int)method always returns true. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidateIndex(int index) If the givenindexor the value at the givenindexis valid, this method should returntrue, otherwisefalse.
-
Field Details
-
TRUE
The validator whosevalidateIndex(int)method always returns true.
-
-
Method Details
-
validateIndex
boolean validateIndex(int index) If the givenindexor the value at the givenindexis valid, this method should returntrue, otherwisefalse.- Parameters:
index- the index to validate- Returns:
true, if the index or the data behind the index is valid.
-