Code example for Collection

Methods: addremove

0
    String getHolder() {
      return holder;
    } 
 
    void replacePath(String oldpath, String newpath) {
      paths.remove(oldpath);
      paths.add(newpath);
    } 
     
    @VisibleForTesting 
    long getLastUpdate() { 
      return lastUpdate;
    } 
  } 
 
  synchronized void changeLease(String src, String dst) {
    if (LOG.isDebugEnabled()) {
      LOG.debug(getClass().getSimpleName() + ".changelease: " +
               " src=" + src + ", dest=" + dst);
    } 
Experience pair programming with AI  Get Codota for Java