replace method

bool replace(
  1. T oldItem,
  2. T newItem
)

Implementation

bool replace(T oldItem, T newItem) {
  return ListUtils.replace(this, oldItem, newItem);
}