Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

timed set in Java

A simple timed set that will evict items after they have been added to the set.

Usage:

final var timedSet = new TimedSet<>(1000);
timedSet.add(1);
Thread.sleep(1050);
timedSet.add(2);
timedSet.contains(1); // false
timedSet.contains(2); // true
Thread.sleep(1050);
timedSet.contains(2); // false

Also supports refreshing an item.

The Timed Set fully implements the Set interface

About

a Timed set in Java

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages