Documentation ¶
Overview ¶
Utility methods to check if state or arguments are correct.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFromIndexSize ¶
Checks if the sub-range from {@code fromIndex} (inclusive) to {@code fromIndex + size} (exclusive) is within the bounds of range from {@code 0} (inclusive) to {@code length} (exclusive).
func CheckFromToIndex ¶
CheckFromToIndex checks if the sub-range from {@code fromIndex} (inclusive) to {@code toIndex} (exclusive) is within the bounds of range from {@code 0} (inclusive) to {@code length} (exclusive).
func CheckIndex ¶
CheckIndex checks if the {@code index} is within the bounds of the range from {@code 0} (inclusive) to {@code length} (exclusive).
Types ¶
type ErrorOutOfBound ¶
type ErrorOutOfBound error
Click to show internal directories.
Click to hide internal directories.