Subversion Repositories javautils

Rev

Rev 9 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 11
Line 188... Line 188...
188
         * use this method to send emails.
188
         * use this method to send emails.
189
         *
189
         *
190
         * @return The email address with punycoded domain name and TLD.
190
         * @return The email address with punycoded domain name and TLD.
191
         */
191
         */
192
        public String getMailAddressPunycodedDomain() {
192
        public String getMailAddressPunycodedDomain() {
193
                if (this.domainPartPunycode.equals("")) {
193
                if (this.domainPartPunycode.isEmpty()) {
194
                        return this.localPart;
194
                        return this.localPart;
195
                } else {
195
                } else {
196
                        return this.localPart + "@" + this.domainPartPunycode;
196
                        return this.localPart + "@" + this.domainPartPunycode;
197
                }
197
                }
198
        }
198
        }
Line 201... Line 201...
201
         * Returns the email address with internationalized domain names and TLD.
201
         * Returns the email address with internationalized domain names and TLD.
202
         *
202
         *
203
         * @return The email address with internationalized domain name and TLD.
203
         * @return The email address with internationalized domain name and TLD.
204
         */
204
         */
205
        public String getMailAddressUnicode() {
205
        public String getMailAddressUnicode() {
206
                if (this.domainPartUnicode.equals("")) {
206
                if (this.domainPartUnicode.isEmpty()) {
207
                        return this.localPart;
207
                        return this.localPart;
208
                } else {
208
                } else {
209
                        return this.localPart + "@" + this.domainPartUnicode;
209
                        return this.localPart + "@" + this.domainPartUnicode;
210
                }
210
                }
211
        }
211
        }