public enum Quark extends Enum<Quark> implements SubatomicParticle
Enum Constant and Description |
---|
BOTTOM
Bottom.
|
CHARM
Charm.
|
DOWN
Down.
|
STRANGE
Strange.
|
TOP
Top.
|
UP
Up.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottomness()
Gets the bottomness of this Quark.
|
int |
getCharm()
Gets the charm of this Quark.
|
ElectricCharge |
getElectricCharge()
Gets the ElectricCharge of this Quark.
|
Generation |
getGeneration()
Gets the generation of this Quark.
|
IsoSpin |
getIsoSpin()
Gets the IsoSpin of this Quark.
|
Spin |
getSpin()
Gets the Spin of this Quark, which is always
Spin.MINUS_ONE_HALF . |
int |
getStrangeness()
Gets the strangeness of this Quark.
|
String |
getSymbol()
Gets the symbol of this Quark.
|
int |
getTopness()
Gets the topness of this Quark.
|
boolean |
isElementary()
Determines whether this subatomic particle is elementary or not.
|
String |
toString()
Creates a String representation of this Quark.
|
static Quark |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Quark[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quark UP
public static final Quark DOWN
public static final Quark CHARM
public static final Quark STRANGE
public static final Quark TOP
public static final Quark BOTTOM
public static Quark[] values()
for (Quark c : Quark.values()) System.out.println(c);
public static Quark 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 String getSymbol()
public Generation getGeneration()
public ElectricCharge getElectricCharge()
public Spin getSpin()
Spin.MINUS_ONE_HALF
.getSpin
in interface SubatomicParticle
public IsoSpin getIsoSpin()
public int getCharm()
public int getStrangeness()
public int getTopness()
public int getBottomness()
public boolean isElementary()
isElementary
in interface SubatomicParticle
Copyright © 2008–2018. All rights reserved.