- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
public synchronized void add(long uid) { if (elems.size() == capacity) { elems.remove(elems.firstLong()); } elems.add(uid); }
private void myMethod () {}
public synchronized void add(long uid) { if (elems.size() == capacity) { elems.remove(elems.firstLong()); } elems.add(uid); }