public enum EmailProtocol extends Enum<EmailProtocol>
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPort() |
static EmailProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmailProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmailProtocol POP3
public static final EmailProtocol POP3S
public static final EmailProtocol IMAP
public static final EmailProtocol IMAPS
public static EmailProtocol[] values()
for (EmailProtocol c : EmailProtocol.values()) System.out.println(c);
public static EmailProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getDefaultPort()
Copyright © 2014–2015 CodeLutin. All rights reserved.