Class Identification


  • public final class Identification
    extends java.lang.Object
    • Constructor Detail

      • Identification

        public Identification()
      • Identification

        public Identification​(IdentificationType type,
                              java.lang.String number,
                              java.lang.String issuingCountry)
        Creates a new Identification instance.
        Parameters:
        type - The type of identification used to identify the sender
        number - The identification number
        issuingCountry - The two-letter ISO country code of the country that issued the identification
    • Method Detail

      • getType

        public IdentificationType getType()
        The type of identification used to identify the sender
      • getNumber

        public java.lang.String getNumber()
        The identification number
      • getIssuingCountry

        public java.lang.String getIssuingCountry()
        The two-letter ISO country code of the country that issued the identification
      • setType

        public void setType​(IdentificationType type)
        The type of identification used to identify the sender
      • setNumber

        public void setNumber​(java.lang.String number)
        The identification number
      • setIssuingCountry

        public void setIssuingCountry​(java.lang.String issuingCountry)
        The two-letter ISO country code of the country that issued the identification
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object