code: @SuppressWarnings("UnusedDeclaration")
      public void setPatterns(Iterable<AccountPatternData> patterns) {
          this.patterns.clear();
          for (AccountPatternData data : patterns) {
              this.patterns.add(new AccountPatternData(data));
          }
      }
docs: This will make a deep clone of the passed in Iterable.
  This will also replace any patterns already set.
  
  @param patterns the patterns to set