public enum ElementaryBoson extends Enum<ElementaryBoson> implements SubatomicParticle
Enum Constant and Description |
---|
GLUON
Gluon.
|
GRAVITON
Graviton.
|
HIGGS
Higgs.
|
PHOTON
Photon.
|
W
W.
|
Z
Z.
|
Modifier and Type | Method and Description |
---|---|
ElectricCharge |
getElectricCharge()
Gets the ElectricCharge of this Boson.
|
Interaction |
getInteraction()
Gets the Interaction of this Boson.
|
Spin |
getSpin()
Gets the Spin of this Boson.
|
String |
getSymbol()
Gets the symbol of this Boson.
|
boolean |
isElementary()
Determines whether this subatomic particle is elementary or not.
|
String |
toString()
Creates a String representation of this Boson.
|
static ElementaryBoson |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElementaryBoson[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementaryBoson PHOTON
public static final ElementaryBoson W
public static final ElementaryBoson Z
public static final ElementaryBoson GLUON
public static final ElementaryBoson GRAVITON
public static final ElementaryBoson HIGGS
public static ElementaryBoson[] values()
for (ElementaryBoson c : ElementaryBoson.values()) System.out.println(c);
public static ElementaryBoson 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 Interaction getInteraction()
public ElectricCharge getElectricCharge()
public Spin getSpin()
getSpin
in interface SubatomicParticle
Spin.ONE
for all confirmed Bosons.public boolean isElementary()
isElementary
in interface SubatomicParticle
public String toString()
toString
in class Enum<ElementaryBoson>
Copyright © 2008–2018. All rights reserved.