Class myfaces._impl._util._Queue
				
			
				
				
				
					
Defined in:  _Queue.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Queue implementation used by our runtime system
improved version of | 
| Method Attributes | Method Name and Description | 
|---|---|
| arrFilter(closure)
								 Simple filter | |
| cleanup()
								 resets the queue to initial empty state | |
| Standard constructor | |
| dequeue()
								 dequeues the last element in the queue | |
| each(closure)
								 simple foreach | |
| enqueue(element)
								 adds a listener to the queue | |
| indexOf(element)
								 | |
| isEmpty()
								 | |
| length()
								 | |
| remove(element)
								 removes a listener form the queue | |
| setQueueSize(newSize)
								 Sets the current queue to a new size, all overflow elements at the end are stripped
automatically | 
					Class Detail
				
				
				
						myfaces._impl._util._Queue()
				
				
				
					Queue implementation used by our runtime system
improved version of
					
				
				
				
				
				
					
					
					
					
					
					
					
						
					
			
					Method Detail
				
				
					 
					
					
					
					arrFilter(closure)
					
					
					
						Simple filter
						
						
					
					
					
					
						
							- Parameters:
- closure
- a closure which returns true or false depending whether the filter has triggered
- Returns:
- an array of filtered queue entries
					
					
					cleanup()
					
					
					
						resets the queue to initial empty state
						
						
					
					
					
					
						
						
						
						
						
						
						
					
					
					
					constructor_()
					
					
					
						Standard constructor
						
						
					
					
					
					
						
						
						
						
						
						
						
					
					
					{Object}
					dequeue()
					
					
					
						dequeues the last element in the queue
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {Object} element which is dequeued
					
					
					each(closure)
					
					
					
						simple foreach
						
						
					
					
					
					
						
							- Parameters:
- closure
- a closure which processes the element
					
					
					enqueue(element)
					
					
					
						adds a listener to the queue
						
						
					
					
					
					
						
							- Parameters:
- element
- the listener to be added
					
					
					indexOf(element)
					
					
					- Parameters:
- element
- Returns:
- the current index of the element in the queue or -1 if it is not found
					
					
					isEmpty()
					
					
					- Returns:
- true if the current queue is empty false otherwise
					
					
					length()
					
					
					- Returns:
- the length of the queue as integer
					
					
					remove(element)
					
					
					
						removes a listener form the queue
						
						
					
					
					
					
						
							- Parameters:
- element
- the listener to be removed
					
					
					setQueueSize(newSize)
					
					
					
						Sets the current queue to a new size, all overflow elements at the end are stripped
automatically
						
						
					
					
					
					
						
							- Parameters:
- {int} newSize
- as numeric value