public static final < T > boolean containsOnly ( short [ ] array , T ... items ) { for ( short b : array ) { if ( ! contains ( items , b ) ) { return false ; } } return true ; }
Throws UnsupportedOperationException if one of array members is not one of items