IGuardedPtr

public interface IGuardedPtr

Guarded pointer interface.

If an invalid index is given, then an appropriate exception will be thrown.

Methods

checkIndex

public boolean checkIndex(int index)

Returns true if the specified index is valid.

Parameters:
  • index – index to validate
Returns:

true if the specified index is valid