Package org.pac4j.core.profile
Class Color
java.lang.Object
org.pac4j.core.profile.Color
- All Implemented Interfaces:
Serializable
This class is a simple RGB color values holder.
It was introduced in 1.2.0 to replace usage of Color
which is a restricted class on Google AppEngine.
- Since:
- 1.2.0
- Author:
- Peter Knego
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getBlue()
Getter for the fieldblue
.int
getGreen()
Getter for the fieldgreen
.int
getRed()
Getter for the fieldred
.void
setBlue
(int blue) Setter for the fieldblue
.void
setGreen
(int green) Setter for the fieldgreen
.void
setRed
(int red) Setter for the fieldred
.toString()
-
Constructor Details
-
Color
public Color(int red, int green, int blue) Constructor for Color.
- Parameters:
red
- a intgreen
- a intblue
- a int
-
-
Method Details
-
getRed
public int getRed()Getter for the field
red
.- Returns:
- a int
-
getGreen
public int getGreen()Getter for the field
green
.- Returns:
- a int
-
getBlue
public int getBlue()Getter for the field
blue
.- Returns:
- a int
-
setRed
public void setRed(int red) Setter for the field
red
.- Parameters:
red
- a int
-
setGreen
public void setGreen(int green) Setter for the field
green
.- Parameters:
green
- a int
-
setBlue
public void setBlue(int blue) Setter for the field
blue
.- Parameters:
blue
- a int
-
toString
-