@Test @Disabled public void testSpeed() throws Exception { Normalizer normalizer = new DeepTrimToLowerNormalizer(); String t = "xs crvtbynU Jikl7897A90"; normalizer.normalize( t ); long t0 = System.currentTimeMillis(); for ( int i = 0; i < 100000000; i++ ) { normalizer.normalize( t ); } long t1 = System.currentTimeMillis(); System.out.println( t1 - t0 ); Strings.deepTrimToLower( t ); t0 = System.currentTimeMillis(); for ( int i = 0; i < 100000000; i++ ) { Strings.deepTrimToLower( t ); } t1 = System.currentTimeMillis(); System.out.println( t1 - t0 ); }
@Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); }
DeepTrimToLowerNormalizer extends Normalizer implements PreparedNormalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } }
DeepTrimToLowerNormalizer extends Normalizer implements PreparedNormalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } DeepTrimToLowerNormalizer( String oid );  DeepTrimToLowerNormalizer(); }
DeepTrimToLowerNormalizer extends Normalizer implements PreparedNormalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } DeepTrimToLowerNormalizer( String oid );  DeepTrimToLowerNormalizer(); @Override String normalize( String value ); @Override String normalize( String value, PrepareString.AssertionType assertionType ); }
DeepTrimToLowerNormalizer extends Normalizer implements PreparedNormalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } DeepTrimToLowerNormalizer( String oid );  DeepTrimToLowerNormalizer(); @Override String normalize( String value ); @Override String normalize( String value, PrepareString.AssertionType assertionType );  }