public static Map < Object , Object > getAllNotEqualsGetterAndSetterAndRemoveThisProperties ( Map < Object , Object > pvGetterMap , Map < Object , Object > pvSetterMap ) { Map < Object , Object > lvMap = new TreeMap < Object , Object > ( ) ; Iterator < Object > it = new ArrayList < Object > ( pvGetterMap . keySet ( ) ) . iterator ( ) ; lvMap . put ( Util . getKeyWordClass ( ) , pvGetterMap . get ( Util . getKeyWordClass ( ) ) ) ; while ( it . hasNext ( ) ) { Object lvGetterProp = it . next ( ) ; if ( pvSetterMap . containsKey ( lvGetterProp ) ) { lvMap . put ( lvGetterProp , pvGetterMap . get ( lvGetterProp ) ) ; } } return Collections . unmodifiableMap ( lvMap ) ; }
Remove all getter - method where no setter - method exist . If more setter - method as getter - method they wasn t removed .