Class InsertionOrder<T>
- java.lang.Object
-
- org.hibernate.search.util.common.data.impl.InsertionOrder<T>
-
public final class InsertionOrder<T> extends Object
A helper to generate map keys that can be sorted according to their insertion order.Useful with
ConcurrentSkipListMapin particular, to get insertion order instead of natural key order.Do not use with maps whose keys can be removed: this class cannot forget about keys, so it can lead to memory leaks in that case.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInsertionOrder.Key<T>
-
Constructor Summary
Constructors Constructor Description InsertionOrder()
-
-
-
Method Detail
-
wrapKey
public InsertionOrder.Key<T> wrapKey(T key)
-
-