public static UnicodeScript of(int codePoint){
  if (!isValidCodePoint(codePoint))   throw new IllegalArgumentException();
  int type=getType(codePoint);
  if (type == UNASSIGNED)   return UNKNOWN;
  int index=Arrays.binarySearch(scriptStarts,codePoint);
  if (index < 0)   index=-index - 2;
  return scripts[index];
}

public static UnicodeScript of ( int codePoint ) { if ( ! isValidCodePoint ( codePoint ) ) throw new IllegalArgumentException ( ) ; int type = getType ( codePoint ) ; if ( type == UNASSIGNED ) return UNKNOWN ; int index = Arrays . binarySearch ( scriptStarts , codePoint ) ; if ( index < 0 ) index = - index - 2 ; return scripts [ index ] ; }
returns the enum constant representing the unicode script of which the given character ( unicode code point ) is assigned to .
