/** * Returns true when the given string is from format: #ffff and false when #ffffffff. * * @param color the color string * @return true or false */ private boolean isShortMode(final String color) { return ColorValidator.isShortMode(color) || ColorValidator.isShortModeWithoutAlpha(color); }