public enum Direction extends Enum<Direction>
Modifier and Type | Method and Description |
---|---|
String |
getPast(boolean proper) |
String |
getPlural(boolean proper) |
String |
getPreposition()
Gets the preposition based on the direction.
|
String |
getText(boolean proper) |
String |
getVerb(boolean proper) |
boolean |
isDowngrade() |
boolean |
isUpgrade() |
static Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction UPGRADE
public static final Direction DOWNGRADE
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 isUpgrade()
true
if the direction is for upgrade. Convenience instead
of equality checking.public boolean isDowngrade()
true
if the direction is for downgrade. Convenience instead
of equality checking.public String getText(boolean proper)
proper
- true
to make the first letter captilizedpublic String getPast(boolean proper)
proper
- true
to make the first letter captilizedpublic String getPlural(boolean proper)
proper
- true
to make the first letter captilizedpublic String getVerb(boolean proper)
proper
- true
to make the first letter captilizedpublic String getPreposition()
Copyright © 2022 Apache Software Foundation. All rights reserved.