Package uk.ac.starlink.array
Interface BadHandler.ArrayHandler
-
- Enclosing class:
- BadHandler
public static interface BadHandler.ArrayHandlerClass provided for testing and setting bad values in a given primitive array. An object of this class is returned by theBadHandler.arrayHandler(java.lang.Object)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisBad(int pos)Indicates whether an element of this ArrayHandler's primitive array is bad.voidputBad(int pos)Writes a single bad value into this ArrayHandler's array.
-
-
-
Method Detail
-
isBad
boolean isBad(int pos)
Indicates whether an element of this ArrayHandler's primitive array is bad.- Parameters:
pos- the position in array of the pixel to be tested.- Throws:
java.lang.IndexOutOfBoundsException- if pos is outside the bounds of the array
-
putBad
void putBad(int pos)
Writes a single bad value into this ArrayHandler's array.- Parameters:
pos- the position at which to write the bad value- Throws:
java.lang.IndexOutOfBoundsException- if access outside the bounds of the array is attempted
-
-