public enum ENetworkPortStatus extends Enum<ENetworkPortStatus>
| Enum Constant and Description |
|---|
CONNECTION_TIMEOUT |
GENERIC_IO_ERROR |
HOST_NOT_EXISTING |
PORT_IS_CLOSED |
PORT_IS_OPEN
Port is open
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPortOpen() |
static ENetworkPortStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ENetworkPortStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ENetworkPortStatus PORT_IS_OPEN
public static final ENetworkPortStatus PORT_IS_CLOSED
public static final ENetworkPortStatus HOST_NOT_EXISTING
public static final ENetworkPortStatus CONNECTION_TIMEOUT
public static final ENetworkPortStatus GENERIC_IO_ERROR
public static ENetworkPortStatus[] values()
for (ENetworkPortStatus c : ENetworkPortStatus.values()) System.out.println(c);
public static ENetworkPortStatus 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 boolean isPortOpen()
Copyright © 2016–2019 Philip Helger. All rights reserved.