Class ValueWithPosAndCountry<E>

  • Type Parameters:
    E - Type of value

    public class ValueWithPosAndCountry<E>
    extends de.knightsoftnet.validators.shared.data.ValueWithPos<E>
    bean with value, cursor position and default country.
    Author:
    Manfred Tremmel
    • Constructor Detail

      • ValueWithPosAndCountry

        public ValueWithPosAndCountry()
        default constructor.
      • ValueWithPosAndCountry

        public ValueWithPosAndCountry​(E pvalue,
                                      int ppos)
        constructor initializing fields.
        Parameters:
        pvalue - value entry
        ppos - cursor position
      • ValueWithPosAndCountry

        public ValueWithPosAndCountry​(E pvalue,
                                      int ppos,
                                      String pcountry,
                                      String planguage)
        constructor initializing fields.
        Parameters:
        pvalue - value entry
        ppos - cursor position
        pcountry - default country code
        planguage - language to get messages
    • Method Detail

      • getCountry

        public final String getCountry()
      • setCountry

        public final void setCountry​(String pcountry)
      • getLanguage

        public final String getLanguage()
      • setLanguage

        public final void setLanguage​(String planguage)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class de.knightsoftnet.validators.shared.data.ValueWithPos<E>
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class de.knightsoftnet.validators.shared.data.ValueWithPos<E>