public void add ( String toAdd ) { if ( toAdd . contains ( "*" ) ) { set . clear ( ) ; defaultContains = true ; } else { if ( ! defaultContains ) { set . add ( toAdd ) ; } else { set . remove ( toAdd ) ; } } }
Add some tokens to the list . By default the list is empty . If the list already contains the added tokens or everything this method will have no effect .