public MatchedEventMapImpl shallowCopy(){
  if (matches.length == 0) {
    return this;
  }
  Object[] copy=new Object[matches.length];
  if (matches.length > 1) {
    System.arraycopy(matches,0,copy,0,matches.length);
  }
 else {
    copy[0]=matches[0];
  }
  return new MatchedEventMapImpl(meta,copy);
}

public MatchedEventMapImpl shallowCopy ( ) { if ( matches . length == 0 ) { return this ; } Object [ ] copy = new Object [ matches . length ] ; if ( matches . length > 1 ) { System . arraycopy ( matches , 0 , copy , 0 , matches . length ) ; } else { copy [ 0 ] = matches [ 0 ] ; } return new MatchedEventMapImpl ( meta , copy ) ; }
make a shallow copy of this collection .
