public void load(List<AccessDescription> accessDescriptions){
  AccessDescription[] accessDescriptionsArray=accessDescriptions.toArray(new AccessDescription[accessDescriptions.size()]);
  Arrays.sort(accessDescriptionsArray,new AccessDescriptionMethodComparator());
  data=new Object[accessDescriptionsArray.length][2];
  int i=0;
  for (  AccessDescription accessDescription : accessDescriptionsArray) {
    data[i][0]=accessDescription;
    data[i][1]=accessDescription;
    i++;
  }
  fireTableDataChanged();
}

public void load ( List < AccessDescription > accessDescriptions ) { AccessDescription [ ] accessDescriptionsArray = accessDescriptions . toArray ( new AccessDescription [ accessDescriptions . size ( ) ] ) ; Arrays . sort ( accessDescriptionsArray , new AccessDescriptionMethodComparator ( ) ) ; data = new Object [ accessDescriptionsArray . length ] [ 2 ] ; int i = 0 ; for ( AccessDescription accessDescription : accessDescriptionsArray ) { data [ i ] [ 0 ] = accessDescription ; data [ i ] [ 1 ] = accessDescription ; i ++ ; } fireTableDataChanged ( ) ; }
load the accessdescriptionstablemodel with access descriptions .
