isConsecutiveNode method

bool isConsecutiveNode(
  1. T other
)

Implementation

bool isConsecutiveNode(T other) {
  return isNextNode(other) || isPreviousNode(other);
}