public class

Colours

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.Colours

Class Overview

Contains static utility methods pertaining to colour values.

Summary

Public Constructors
Colours()
Public Methods
static boolean isHexColour(String input)
Determines whether the input string is a valid hex encoded colour value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Colours ()

Public Methods

public static boolean isHexColour (String input)

Determines whether the input string is a valid hex encoded colour value.

See CSS Color Module for the details on how a valid value is determined.

Parameters
input The input string to be tested.
Returns
  • true if the input string is a valid hex encoded colour value. Otherwise, false.