I want to remove the oldest member of a LinkedHashSet
, I know that there's a removeEldestEntry
method that I have to override (Java doc for removeEldestEntry
),
but I guess that I have to define initial capacity
and load factor
which I don't care and I simply want to remove the element which was least recently accessed (here by access I mean being put
while it's already in the set or being read)
Is there any way not to override removeEldestEntry
?