Interface CustomerNameStrategy

All Known Implementing Classes:
DefaultCustomerNameStrategy

public interface CustomerNameStrategy
  • Method Summary

    Modifier and Type
    Method
    Description
    getName(String firstName, String lastName)
    Retrieves the name by combining firstname and lastname separated by a space character.
    Retrieves first and lastname by splitting the given name at the last found space separator.
  • Method Details

    • splitName

      String[] splitName(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

      String getName(String firstName, String lastName)
      Retrieves the name by combining firstname and lastname separated by a space character.
      Parameters:
      firstName -
      lastName -
      Returns:
      name