Class ConsumableBlockingQueue<T>

    • Constructor Detail

      • ConsumableBlockingQueue

        public ConsumableBlockingQueue​(int maxSize)
    • Method Detail

      • equals

        public boolean equals​(Object obj)
        Warning - this will convert the entire queue to an array to check if the items are equal so use it with with caution.
        Specified by:
        equals in interface Collection<T>
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare
        Returns:
        true if equal, otherwise false.
      • hashCode

        public int hashCode()
        Warning - this will convert the entire queue to an array to get a hashcode, so use it with caution.
        Specified by:
        hashCode in interface Collection<T>
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Warning - this will convert the entire queue to an array to get a string, so use with caution.
        Overrides:
        toString in class ArrayBlockingQueue<T>