public enum Transports extends Enum<Transports>
Modifier and Type | Method and Description |
---|---|
static void |
assertNotTransportThread(String reason) |
static void |
assertTransportThread() |
static boolean |
isTransportThread(Thread t)
Utility method to detect whether a thread is a network thread.
|
static Transports |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transports[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Transports[] values()
for (Transports c : Transports.values()) System.out.println(c);
public static Transports 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 static final boolean isTransportThread(Thread t)
public static void assertTransportThread()
public static void assertNotTransportThread(String reason)
Copyright © 2009–2015. All rights reserved.