diff --git a/OsmAnd-java/src/net/osmand/util/LIFOBlockingDeque.java b/OsmAnd-java/src/net/osmand/util/LIFOBlockingDeque.java new file mode 100644 index 0000000000..41f055e0d3 --- /dev/null +++ b/OsmAnd-java/src/net/osmand/util/LIFOBlockingDeque.java @@ -0,0 +1,18 @@ +package net.osmand.util; + +import java.util.concurrent.LinkedBlockingDeque; + +public class LIFOBlockingDeque extends LinkedBlockingDeque { + + private static final long serialVersionUID = 1L; + + @Override + public boolean offer(T t) { + return super.offerFirst(t); + } + + @Override + public T remove() { + return super.removeFirst(); + } +}