protected ColorType(String description){
  if (description == null) {
    throw new NullPointerException("ColorType must have a valid description");
  }
  this.description=description;
synchronized (ColorType.class) {
    this.index=nextID++;
  }
}

protected ColorType ( String description ) { if ( description == null ) { throw new NullPointerException ( "ColorType must have a valid description" ) ; } this . description = description ; synchronized ( ColorType . class ) { this . index = nextID ++ ; } }
creates a new colortype with the specified description .
