Interface CustomerNameStrategy
-
- All Known Implementing Classes:
DefaultCustomerNameStrategy
public interface CustomerNameStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName(java.lang.String firstName, java.lang.String lastName)Retrieves the name by combining firstname and lastname separated by a space character.java.lang.String[]splitName(java.lang.String name)Retrieves first and lastname by splitting the given name at the last found space separator.
-
-
-
Method Detail
-
splitName
java.lang.String[] splitName(java.lang.String name)
Retrieves first and lastname by splitting the given name at the last found space separator.- Parameters:
name-- Returns:
- array containing first- and lastname
-
getName
java.lang.String getName(java.lang.String firstName, java.lang.String lastName)Retrieves the name by combining firstname and lastname separated by a space character.- Parameters:
firstName-lastName-- Returns:
- name
-
-