public enum SpecialStatus extends Enum<SpecialStatus> implements Serializable
Identity
Enum Constant and Description |
---|
EXTENDED_MINORITY |
NO_STATUS |
WHITE_CANE |
WHITE_CANE_EXTENDED_MINORITY |
YELLOW_CANE |
YELLOW_CANE_EXTENDED_MINORITY |
Modifier and Type | Method and Description |
---|---|
boolean |
hasBadSight()
Return whether the citizen has a bad sight.
|
boolean |
hasExtendedMinority()
Extended Minority.
|
boolean |
hasWhiteCane()
Returns whether the citizen has a white cane.
|
boolean |
hasYellowCane()
Returns whether the citizen has a yellow cane.
|
static SpecialStatus |
toSpecialStatus(String value)
Converts the given string to the corresponding special status enum.
|
static SpecialStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpecialStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecialStatus NO_STATUS
public static final SpecialStatus WHITE_CANE
public static final SpecialStatus EXTENDED_MINORITY
public static final SpecialStatus WHITE_CANE_EXTENDED_MINORITY
public static final SpecialStatus YELLOW_CANE
public static final SpecialStatus YELLOW_CANE_EXTENDED_MINORITY
public static SpecialStatus[] values()
for (SpecialStatus c : SpecialStatus.values()) System.out.println(c);
public static SpecialStatus 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 hasWhiteCane()
public boolean hasExtendedMinority()
public boolean hasYellowCane()
public boolean hasBadSight()
public static SpecialStatus toSpecialStatus(String value)
value
- Copyright © 2012–2024 e-Contract.be BV. All rights reserved.