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 ConcurrentSkipListMap in 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.

  • Constructor Details

    • InsertionOrder

      public InsertionOrder()
  • Method Details