Code example for Set

Methods: size, toArray

0
	private View.OnClickListener closeButtonListener = new View.OnClickListener() {
 
		@Override 
		public void onClick(View v) { 
			if (mOnNoteEditListener != null) { 
				Integer[] numbers = new Integer[mNoteSelectedNumbers.size()]; 
				mOnNoteEditListener.onNoteEdit(mNoteSelectedNumbers.toArray(numbers)); 
			} 
			dismiss(); 
		} 
	}; 
 
	/** 
	 * Interface definition for a callback to be invoked, when user selects number, which 
	 * should be entered in the sudoku cell. 
	 * 
	 * @author romario 
	 */ 
	public interface OnNumberEditListener { 
		boolean onNumberEdit(int number);
	}