public static enum PointOfInterestStorage.OccupationStatus extends Enum<PointOfInterestStorage.OccupationStatus>
Enum Constant and Description |
---|
ANY |
HAS_SPACE |
IS_OCCUPIED |
Modifier and Type | Field and Description |
---|---|
private Predicate<? super PointOfInterest> |
predicate |
Modifier and Type | Method and Description |
---|---|
Predicate<? super PointOfInterest> |
getPredicate() |
static PointOfInterestStorage.OccupationStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PointOfInterestStorage.OccupationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PointOfInterestStorage.OccupationStatus HAS_SPACE
public static final PointOfInterestStorage.OccupationStatus IS_OCCUPIED
public static final PointOfInterestStorage.OccupationStatus ANY
private final Predicate<? super PointOfInterest> predicate
public static PointOfInterestStorage.OccupationStatus[] values()
for (PointOfInterestStorage.OccupationStatus c : PointOfInterestStorage.OccupationStatus.values()) System.out.println(c);
public static PointOfInterestStorage.OccupationStatus 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 Predicate<? super PointOfInterest> getPredicate()