Class Color

java.lang.Object
org.pac4j.core.profile.Color
All Implemented Interfaces:
Serializable

public class Color extends Object implements 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 Details

    • Color

      public Color(int red, int green, int blue)

      Constructor for Color.

      Parameters:
      red - a int
      green - a int
      blue - 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

      public String toString()
      Overrides:
      toString in class Object