public String toString(int numSets){
  if (m_sets.size() == 0) {
    return "No frequent items sets found!";
  }
  StringBuffer result=new StringBuffer();
  result.append("" + m_sets.size() + " frequent item sets found");
  if (numSets > 0) {
    result.append(" , displaying " + numSets);
  }
  result.append(":\n\n");
  int count=0;
  for (  FrequentBinaryItemSet i : m_sets) {
    if (numSets > 0 && count > numSets) {
      break;
    }
    result.append(i.toString() + "\n");
    count++;
  }
  return result.toString();
}

public String toString ( int numSets ) { if ( m_sets . size ( ) == 0 ) { return "No frequent items sets found!" ; } StringBuffer result = new StringBuffer ( ) ; result . append ( "" + m_sets . size ( ) + " frequent item sets found" ) ; if ( numSets > 0 ) { result . append ( " , displaying " + numSets ) ; } result . append ( ":\n\n" ) ; int count = 0 ; for ( FrequentBinaryItemSet i : m_sets ) { if ( numSets > 0 && count > numSets ) { break ; } result . append ( i . toString ( ) + "\n" ) ; count ++ ; } return result . toString ( ) ; }
get a textual description of this list of item sets .
