public void setDatabaseDuplicateIds() {
        // Set the spec topic duplicate ids based on topic title
        for (final Entry<Integer, List<ITopicNode>> topicTitleEntry : topics.entrySet()) {
            final List<ITopicNode> topics = topicTitleEntry.getValue();
            if (topics.size() > 1) {
                for (int i = 1; i < topics.size(); i++) {
                    topics.get(i).setDuplicateId(Integer.toString(i));
                }
            }
        }
    }
public void setDatabaseDuplicateIds ( ) { for ( final Entry < Integer , List < ITopicNode > > topicTitleEntry : topics . entrySet ( ) ) { final List < ITopicNode > topics = topicTitleEntry . getValue ( ) ; if ( topics . size ( ) > 1 ) { for ( int i = 1 ; i < topics . size ( ) ; i ++ ) { topics . get ( i ) . setDuplicateId ( Integer . toString ( i ) ) ; } } } }
Sets the Duplicate IDs for all the SpecTopics in the Database.