|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<InternetProtocol>
com.github.dockerjava.api.model.InternetProtocol
public enum InternetProtocol
The IP protocols supported by Docker.
TCP
,
UDP
Enum Constant Summary | |
---|---|
TCP
The Transmission Control Protocol |
|
UDP
The User Datagram Protocol |
Field Summary | |
---|---|
static InternetProtocol |
DEFAULT
The default InternetProtocol : TCP |
Method Summary | |
---|---|
static InternetProtocol |
parse(String serialized)
Parses a string to an InternetProtocol . |
String |
toString()
Returns a string representation of this InternetProtocol suitable
for inclusion in a JSON message. |
static InternetProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static InternetProtocol[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final InternetProtocol TCP
public static final InternetProtocol UDP
Field Detail |
---|
public static final InternetProtocol DEFAULT
InternetProtocol
: TCP
Method Detail |
---|
public static InternetProtocol[] values()
for (InternetProtocol c : InternetProtocol.values()) System.out.println(c);
public static InternetProtocol valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
InternetProtocol
suitable
for inclusion in a JSON message.
The output is the lowercased name of the Protocol, e.g. tcp
.
toString
in class Enum<InternetProtocol>
InternetProtocol
public static InternetProtocol parse(String serialized) throws IllegalArgumentException
InternetProtocol
.
serialized
- the protocol, e.g. tcp
or TCP
InternetProtocol
described by the string
IllegalArgumentException
- if the argument cannot be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |