Class RegularBucketQueue<T>


  • @ParametersAreNonnullByDefault
    public class RegularBucketQueue<T>
    extends java.lang.Object
    Similar to BucketQueue but with customizable bucket size. RegularBucketQueue with bucketSize=1 should behave like BucketQueue.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegularBucketQueue​(int bucketCount, long bucketSize, boolean ascending)  
    • Constructor Detail

      • RegularBucketQueue

        public RegularBucketQueue​(int bucketCount,
                                  long bucketSize,
                                  boolean ascending)
    • Method Detail

      • offer

        public void offer​(T obj,
                          long key)
      • poll

        @Nullable
        public T poll()
      • isEmpty

        public boolean isEmpty()
      • isMixedKeysDetected

        public boolean isMixedKeysDetected()
      • remove

        public boolean remove​(T obj)