Code example for PriorityQueue

Methods: add

0
	 
	public void addReserveMatchSet(MatchSet ms, boolean addToLeft)
	{ 
		PriorityQueue<MatchSet> l = (addToLeft ? leftReserveSets : rightReserveSets);
		if (l == null)
			l = new PriorityQueue<MatchSet>(5, msDc);
		 
		l.add(ms);
	} 
	 
	public void clearReservedMatchSets()  
	{ 
		if (this.rightReserveSets != null)
			this.rightReserveSets.clear();
	 
		if (this.leftReserveSets != null)
			this.leftReserveSets.clear();
	} 
	 
	public double applyDigitMask(int numDigits)
	{