public Record copy ( ) { //return new Record(ArrayListMultimap.create(fields)); // adding fields later causes (slow) rehashing ArrayListMultimap < String , Object > copy = ArrayListMultimap . create ( fields . size ( ) + 16 , 10 ) ; copy . putAll ( fields ) ; return new Record ( copy ) ; }
Returns a shallow copy of this record .