Class RGBColor

java.lang.Object
org.fest.assertions.RGBColor

final class RGBColor extends Object
Understands a color.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     
    private final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RGBColor(int rgb)
     
    RGBColor(int r, int g, int b)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) int
    b()
     
    private static int
    b(int rgb)
     
    (package private) int
    g()
     
    private static int
    g(int rgb)
     
    (package private) boolean
    isEqualTo(RGBColor color, int threshold)
     
    (package private) int
    r()
     
    private static int
    r(int rgb)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • r

      private final int r
    • g

      private final int g
    • b

      private final int b
  • Constructor Details

    • RGBColor

      RGBColor(int rgb)
    • RGBColor

      RGBColor(int r, int g, int b)
  • Method Details

    • r

      private static int r(int rgb)
    • g

      private static int g(int rgb)
    • b

      private static int b(int rgb)
    • r

      int r()
    • g

      int g()
    • b

      int b()
    • isEqualTo

      boolean isEqualTo(RGBColor color, int threshold)
    • toString

      public String toString()
      Overrides:
      toString in class Object