util/com/innovanon/sjp/Util.java
/**
	 * @return whether the letters are all unique
	 */
@return whether the letters are all unique
@return whether the letters are all unique
public static <T> boolean unique (final T[] letters) {
		final List<T> a = Arrays.asList (letters);
		assert (a.size () == letters.length);
		final Set <T> b = new HashSet<> (a);
		assert (a.size () >= b.size ());
		return (a.size () == b.size ());
	}
public static < T > boolean unique ( final T [ ] letters ) { final List < T > a = Arrays . asList ( letters ) ; assert ( a . size ( ) == letters . length ) ; final Set < T > b = new HashSet < > ( a ) ; assert ( a . size ( ) >= b . size ( ) ) ; return ( a . size ( ) == b . size ( ) ) ; }
@return whether the letters are all unique
@return whether the letters are all unique