MCPcopy Index your code
hub / github.com/EdwardRaff/JSAT / add

Method add

JSAT/src/jsat/utils/BoundedSortedSet.java:30–38  ·  view source on GitHub ↗
(V e)

Source from the content-addressed store, hash-verified

28 }
29
30 @Override
31 public boolean add(V e)
32 {
33 super.add(e);
34
35 if(size() > maxSize)
36 remove(last());
37 return true;
38 }
39
40 @Override
41 public boolean addAll(Collection<? extends V> clctn)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.65
removeMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected