@Override public Object clone() throws CloneNotSupportedException {
  KeyToGroupMap result=(KeyToGroupMap)super.clone();
  result.defaultGroup=(Comparable)KeyToGroupMap.clone(this.defaultGroup);
  result.groups=(List)KeyToGroupMap.clone(this.groups);
  result.keyToGroupMap=(Map)KeyToGroupMap.clone(this.keyToGroupMap);
  return result;
}

@ Override public Object clone ( ) throws CloneNotSupportedException { KeyToGroupMap result = ( KeyToGroupMap ) super . clone ( ) ; result . defaultGroup = ( Comparable ) KeyToGroupMap . clone ( this . defaultGroup ) ; result . groups = ( List ) KeyToGroupMap . clone ( this . groups ) ; result . keyToGroupMap = ( Map ) KeyToGroupMap . clone ( this . keyToGroupMap ) ; return result ; }
returns a clone of the map .
