packt.java9.by.example.mastermind

## Class ColorManager

- java.lang.Object
- - packt.java9.by.example.mastermind.ColorManager

-     public class ColorManager
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected int` | `nrColors`
    `protected java.util.Map<Color,Color>` | `successor`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ColorManager(int nrColors)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Color` | `firstColor()`
    `protected Color` | `newColor()`
    `Color` | `nextColor(Color color)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### nrColors

          protected final int nrColors

    - #### successor

          protected final java.util.Map<Color,Color> successor

  - ### Constructor Detail

    - #### ColorManager

          public ColorManager(int nrColors)

  - ### Method Detail

    - #### newColor

          protected Color newColor()

    - #### firstColor

          public Color firstColor()

    - #### nextColor

          public Color nextColor(Color color)