Code example for PriorityQueue

Methods: add

0
 
	public static void addError(String error) {
		// if (errorQueue.size() >= RyderConstants.ERROR_QUEUE_SIZE) { 
		// errorQueue.poll(); 
		// } 
		errorQueue.add(error);
	} 
 
	public static String getMessage() {
		return queue.peek();
	} 
 
	public static String getError() {
		return errorQueue.peek();
	} 
 
	public static String removeError() {
		return errorQueue.poll();
	} 
 
	public static void removeMessage() {