public enum SemaphoreFactory extends Enum<SemaphoreFactory> implements Factory<Semaphore>
Factory,
FactoryUtil| Modifier and Type | Method and Description |
|---|---|
String |
getState() |
static SemaphoreFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SemaphoreFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnewInstancepublic static final SemaphoreFactory STOP
public static final SemaphoreFactory WAIT
public static final SemaphoreFactory GO
public static SemaphoreFactory[] values()
for (SemaphoreFactory c : SemaphoreFactory.values()) System.out.println(c);
public static SemaphoreFactory 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 getState()
Copyright © 2015 Omnia Consulting. All rights reserved.