QuantitationTypeParameterGuesser { protected static Boolean guessIsBackground( String name, String description ) { for ( Boolean type : QuantitationTypeParameterGuesser.isBackgroundDescPatterns.keySet() ) { for ( String patt : QuantitationTypeParameterGuesser.isBackgroundDescPatterns.get( type ) ) { if ( description.matches( patt ) ) { return type; } } for ( String patt : QuantitationTypeParameterGuesser.isBackgroundNamePatterns.get( type ) ) { if ( name.matches( patt ) ) { return type; } } } return Boolean.FALSE; }  static void guessQuantitationTypeParameters( QuantitationType qt, String name, String description ); static void guessQuantitationTypeParameters( QuantitationType qt, String name, String description,
            Object exampleValue );  }
@Test public void testbackground() { String a = "B635_MEDIAN"; String b = "median Cy5 feature background intensity"; Boolean s = QuantitationTypeParameterGuesser.guessIsBackground( a.toLowerCase(), b.toLowerCase() ); assertEquals( "got " + s, Boolean.TRUE, s ); }