Class DefaultCustomerNameStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.strategies.impl.DefaultCustomerNameStrategy
-
- All Implemented Interfaces:
CustomerNameStrategy
public class DefaultCustomerNameStrategy extends java.lang.Object implements CustomerNameStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomerNameStrategy()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String[] splitName(java.lang.String name)
Description copied from interface:CustomerNameStrategyRetrieves first and lastname by splitting the given name at the last found space separator.- Specified by:
splitNamein interfaceCustomerNameStrategy- Returns:
- array containing first- and lastname
-
getName
public java.lang.String getName(java.lang.String firstName, java.lang.String lastName)Description copied from interface:CustomerNameStrategyRetrieves the name by combining firstname and lastname separated by a space character.- Specified by:
getNamein interfaceCustomerNameStrategy- Returns:
- name
-
-