public enum KindOfForce extends Enum<KindOfForce> implements Enumeration
Enum Constant and Description |
---|
NEWTONIAN_FORCE
A Newtonian force which may be applied to any given point mass to
produce an acceleration.
|
NEWTONIAN_REACTION_FORCE
A Newtonian "reaction" force is a force which results from the change in
mass of a system.
|
NEWTONIAN_SPECIFIC_FORCE
A Newtonian "specific" force which takes the target mass into account to
produce a force independent of mass.
|
Modifier and Type | Method and Description |
---|---|
static KindOfForce |
getDefault()
Get the enum constant that is considered to be the default.
|
static KindOfForce |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static KindOfForce |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KindOfForce[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KindOfForce NEWTONIAN_FORCE
public static final KindOfForce NEWTONIAN_SPECIFIC_FORCE
public static final KindOfForce NEWTONIAN_REACTION_FORCE
public static KindOfForce[] values()
for (KindOfForce c : KindOfForce.values()) System.out.println(c);
public static KindOfForce 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static KindOfForce getFromValue(int value)
value
- a numeric value.@Nonnull public static KindOfForce getDefault()