Class BambooQueues


  • public class BambooQueues
    extends Object
    • Constructor Detail

      • BambooQueues

        public BambooQueues()
    • Method Detail

      • drainToArray

        public static <T> T[] drainToArray​(Queue<T> queue,
                                           Class<T> type)
        Converts the supplied queue to an array, draining the queue.