public static enum Network.Type extends Enum<Network.Type>
| Enum Constant and Description |
|---|
BUILTIN
Predefined networks that are built-in into Docker.
|
CUSTOM
Custom networks that were created by users.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static Network.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Network.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Network.Type BUILTIN
public static final Network.Type CUSTOM
public static Network.Type[] values()
for (Network.Type c : Network.Type.values()) System.out.println(c);
public static Network.Type 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 String getName()
Copyright © 2018. All rights reserved.