Serializable
, Comparable<Joiner.Status>
public static enum Joiner.Status extends Enum<Joiner.Status>
Enum Constant | Description |
---|---|
ADDED |
an ADDED status is returned when a child successfully adds itself to the join list but without reaching
the expected number of children
|
DONE |
a DONE status is returned when a child successfully adds itself to the join list reaching the expected
number of children and there is a parent thread waiting for the children
|
DUPLICATE |
a DUPLICATE status is returned when a child fails to add itself to the join list because it is already present
|
EXCESS |
an EXCESS status is returned when a child fails to add itself to a join list because it already contains the
expected number of children
|
FILLED |
a FILLED status is returned when a child successfully adds itself to the join list reaching the expected
number of children but there is no parent thread waiting for the children
|
Modifier and Type | Method | Description |
---|---|---|
static Joiner.Status |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Joiner.Status[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Joiner.Status DUPLICATE
public static final Joiner.Status EXCESS
public static final Joiner.Status ADDED
public static final Joiner.Status FILLED
public static final Joiner.Status DONE
public static Joiner.Status[] values()
for (Joiner.Status c : Joiner.Status.values()) System.out.println(c);
public static Joiner.Status 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 nullCopyright © 2018. All rights reserved.