toImmutable

Initializes a ImmutablePosition with the current x and y coordinates.

Return

A new ImmutablePosition instance.