public synchronized void cacheReposts(List<Long> newRepostIds){
  TreeSet<Long> reposts=new TreeSet<>();
  reposts.addAll(Longs.asList(repostCache.get()));
  reposts.addAll(newRepostIds);
  repostCache.set(Longs.toArray(reposts));
}

public synchronized void cacheReposts ( List < Long > newRepostIds ) { TreeSet < Long > reposts = new TreeSet < > ( ) ; reposts . addAll ( Longs . asList ( repostCache . get ( ) ) ) ; reposts . addAll ( newRepostIds ) ; repostCache . set ( Longs . toArray ( reposts ) ) ; }
caches the given items as reposts .
