public final void addTarget ( @ NotNull final Target target ) { Contract . requireArgNotNull ( "target" , target ) ; if ( targets == null ) { targets = new ArrayList <> ( ) ; } targets . add ( target ) ; }
Adds a target to the list . If the list does not exist it s created .