Lines Matching defs:string
80 * Return the size represented as a string with the format {@code "WxH"}
82 * @return string representation of the size
94 * Parses the specified string as a size value.
106 * where <i>width</i> and <i>height</i> are string integers potentially
115 * @param string the string representation of a size value.
116 * @return the size value represented by {@code string}.
118 * @throws NumberFormatException if {@code string} cannot be parsed
120 * @throws NullPointerException if {@code string} was {@code null}
122 public static Size parseSize(String string)
124 checkNotNull(string, "string must not be null");
126 int sep_ix = string.indexOf('*');
128 sep_ix = string.indexOf('x');
131 throw invalidSize(string);
134 return new Size(Integer.parseInt(string.substring(0, sep_ix)),
135 Integer.parseInt(string.substring(sep_ix + 1)));
137 throw invalidSize(string);