public final class Colors extends Object
Modifier and Type | Method and Description |
---|---|
static Color |
colorFromHexString(String hexString)
Returns a
Color from the given String containing the hexadecimal coding of a color. |
@Nonnull public static Color colorFromHexString(@Nonnull String hexString)
Color
from the given String
containing the hexadecimal coding of a color.hexString
- contains the hexadecimal coding of a color.Color
from the given String
containing the hexadecimal coding of a color.NullPointerException
- if the hexadecimal code is null
.IllegalArgumentException
- if the hexadecimal code is empty.NumberFormatException
- if the hexadecimal code is empty.Copyright © 2014–2019 AssertJ. All rights reserved.