Code example for TreeSet

Methods: addAll

0
		 * Gets the locales. 
		 *  
		 * @return the locales 
		 */ 
		public SortedSet<Locale> getLocales() {
			final TreeSet<Locale> treeSet = new TreeSet<Locale>(
					LOCALE_COMPARATOR);
			treeSet.addAll(Arrays.asList(new Locale("en"), new Locale("it"),
					new Locale("fr")));
			return treeSet;
		} 
 
		/** 
		 * Checks if is final. 
		 *  
		 * @return true, if is final 
		 */ 
		public boolean isFinal() { 
			return this.final_;
		} 
	}