de.lessvoid.nifty.tools
Class ColorValidator
java.lang.Object
de.lessvoid.nifty.tools.ColorValidator
public class ColorValidator
- extends Object
This checks a given String that represents a color for being valid. Supported
are both short mode "#f12f" and long mode "#ff1122ff"
- Author:
- void
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorValidator
public ColorValidator()
isValid
public boolean isValid(String toCheck)
isShortMode
public boolean isShortMode(String toCheck)
isShortModeWithoutAlpha
public boolean isShortModeWithoutAlpha(String toCheck)
isLongMode
public boolean isLongMode(String toCheck)
isLongModeWithoutAlpha
public boolean isLongModeWithoutAlpha(String toCheck)
Copyright © 2011. All Rights Reserved.