code: @Override
      public boolean contains(ILonePair lonePair) {
          for (int i = 0; i < getLonePairCount(); i++) {
              if (lonePair == lonePairs[i]) return true;
          }
          return false;
      }
docs: {@inheritDoc}