org.specrunner.util.aligner.core
Class StringAlignerFactoryImpl

java.lang.Object
  extended by org.specrunner.util.aligner.core.StringAlignerFactoryImpl
All Implemented Interfaces:
IStringAlignerFactory

public class StringAlignerFactoryImpl
extends Object
implements IStringAlignerFactory

Default alignment factory implementation.

Author:
Thiago Santos

Field Summary
 
Fields inherited from interface org.specrunner.util.aligner.IStringAlignerFactory
DEFAULT_FILL_CHARACTER
 
Constructor Summary
StringAlignerFactoryImpl()
           
 
Method Summary
 IStringAligner align(String expected, String received)
          Creates a new alignment.
 IStringAligner align(String expected, String received, char fillCharacter)
          Creates a new alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringAlignerFactoryImpl

public StringAlignerFactoryImpl()
Method Detail

align

public IStringAligner align(String expected,
                            String received)
Description copied from interface: IStringAlignerFactory
Creates a new alignment.

Specified by:
align in interface IStringAlignerFactory
Parameters:
expected - The expected string.
received - The received string.
Returns:
The alignment result.

align

public IStringAligner align(String expected,
                            String received,
                            char fillCharacter)
Description copied from interface: IStringAlignerFactory
Creates a new alignment.

Specified by:
align in interface IStringAlignerFactory
Parameters:
expected - The expected string.
received - The received string.
fillCharacter - The fill character.
Returns:
The alignment result.


Copyright © 2014. All rights reserved.