public void addMethod ( final String resource , final ResourceMethod method ) { resources . putIfAbsent ( resource , new HashSet <> ( ) ) ; resources . get ( resource ) . add ( method ) ; }
Adds the method to the resource s methods .