public Collection<GridPortRecord> records(){
synchronized (recs) {
    return Collections.unmodifiableCollection(new ArrayList<>(recs));
  }
}

public Collection < GridPortRecord > records ( ) { synchronized ( recs ) { return Collections . unmodifiableCollection ( new ArrayList < > ( recs ) ) ; } }
returns unmodifiable collections of records .
