indexOf method

int indexOf(
  1. ImmutablePart immutablePart
)

Retrieves the position of the given part in the immutable part collection.

Parameters:

  • immutablePart — The part you want to find.

Return Value: The position of the part in the collection, -1 otherwise.