@Test public void testCheckColorInvalid() { assertFalse(Color.check("#1")); }
public static boolean check(final String color) { if (ColorValidator.isShortModeWithoutAlpha(color) || ColorValidator.isLongModeWithoutAlpha(color) || ColorValidator.isValid(color)) { return true; } return false; }
Color { public static boolean check(final String color) { if (ColorValidator.isShortModeWithoutAlpha(color) || ColorValidator.isLongModeWithoutAlpha(color) || ColorValidator.isValid(color)) { return true; } return false; } }
Color { public static boolean check(final String color) { if (ColorValidator.isShortModeWithoutAlpha(color) || ColorValidator.isLongModeWithoutAlpha(color) || ColorValidator.isValid(color)) { return true; } return false; } Color(@Nonnull final String color);  Color(final float newRed, final float newGreen, final float newBlue, final float newAlpha);  Color(final int color);  Color(@Nonnull final Color newColor, final float newAlpha);  Color(@Nonnull final Color colorParam); }
Color { public static boolean check(final String color) { if (ColorValidator.isShortModeWithoutAlpha(color) || ColorValidator.isLongModeWithoutAlpha(color) || ColorValidator.isValid(color)) { return true; } return false; } Color(@Nonnull final String color);  Color(final float newRed, final float newGreen, final float newBlue, final float newAlpha);  Color(final int color);  Color(@Nonnull final Color newColor, final float newAlpha);  Color(@Nonnull final Color colorParam); String getColorString(); void setColorString(final String colorString); @Nonnull String getColorStringWithoutAlpha(); void linear(@Nonnull final Color start, @Nonnull final Color end, final float t); float getRed(); float getGreen(); float getBlue(); float getAlpha(); void multiply(@Nonnull final Color color, final float factor); @Deprecated void mutiply(@Nonnull final Color color, final float factor); @Override @Nonnull String toString(); @Nonnull Color setAlpha(final float newColorAlpha); void setRed(final float newRed); void setGreen(final float newGreen); void setBlue(final float newBlue); static boolean check(final String color); void fromString(@Nonnull final String color); void fromStringWithoutAlpha(@Nonnull final String color); @Nonnull static Color randomColor(); }
Color { public static boolean check(final String color) { if (ColorValidator.isShortModeWithoutAlpha(color) || ColorValidator.isLongModeWithoutAlpha(color) || ColorValidator.isValid(color)) { return true; } return false; } Color(@Nonnull final String color);  Color(final float newRed, final float newGreen, final float newBlue, final float newAlpha);  Color(final int color);  Color(@Nonnull final Color newColor, final float newAlpha);  Color(@Nonnull final Color colorParam); String getColorString(); void setColorString(final String colorString); @Nonnull String getColorStringWithoutAlpha(); void linear(@Nonnull final Color start, @Nonnull final Color end, final float t); float getRed(); float getGreen(); float getBlue(); float getAlpha(); void multiply(@Nonnull final Color color, final float factor); @Deprecated void mutiply(@Nonnull final Color color, final float factor); @Override @Nonnull String toString(); @Nonnull Color setAlpha(final float newColorAlpha); void setRed(final float newRed); void setGreen(final float newGreen); void setBlue(final float newBlue); static boolean check(final String color); void fromString(@Nonnull final String color); void fromStringWithoutAlpha(@Nonnull final String color); @Nonnull static Color randomColor(); static final Color NONE; static final Color WHITE; static final Color BLACK; }