public void AddChecker(StringChecker checker) { lastChecker.SetNext(checker); this.lastChecker = checker; }
public PasswordValidator(StringChecker checker) { this.firstChecker = checker; this.lastChecker = firstChecker; }
public void AddLink(StringChecker link) { lastLink.SetNext(link); lastLink = link; }
public void SetNext(StringChecker next) { this.next = next; }
public PasswordValidator(StringChecker first) { this.firstLink = first; this.lastLink = first; }