Interface IPersonalData

  • All Known Subinterfaces:
    ISpouseData
    All Known Implementing Classes:
    PersonalData, SpouseData

    public interface IPersonalData
    Defining the personal data of a person.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 23, 2012
    • Method Detail

      • getName

        java.lang.String getName()
        Retrieve the players name
        Returns:
        first name
      • getLastName

        java.lang.String getLastName()
        Get a players last name
        Returns:
        last name
      • isMale

        boolean isMale()
        Check if the player is male
        Returns:
        flag if the person is male
      • getBirthPlace

        ICity getBirthPlace()
        Retrieve the birth place
        Returns:
        birth city
      • getBirthDate

        java.time.LocalDateTime getBirthDate()
        Retrieve the birth date
        Returns:
        birth date
      • getAge

        int getAge​(java.time.LocalDateTime current)
        Compute the current age
        Parameters:
        current - date
        Returns:
        age in years per current