public enum Lepton extends Enum<Lepton> implements SubatomicParticle
Enum Constant and Description |
---|
ELECTRON
Electron.
|
ELECTRON_NEUTRINO
Electron neutrino.
|
MUON
Muon.
|
MUON_NEUTRINO
Muon neutrino.
|
TAU
Tau.
|
TAU_NEUTRINO
Tau neutrino.
|
Modifier and Type | Method and Description |
---|---|
ElectricCharge |
getElectricCharge()
Gets the ElectricCharge of this Lepton.
|
Generation |
getGeneration()
Gets the generation of this Lepton.
|
Spin |
getSpin()
Gets the Spin of this Lepton, which is always
Spin.ONE_HALF . |
String |
getSymbol()
Gets the symbol of this Lepton.
|
boolean |
isElementary()
Determines whether this subatomic particle is elementary or not.
|
String |
toString()
Creates a String representation of this Lepton.
|
static Lepton |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Lepton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Lepton ELECTRON
public static final Lepton ELECTRON_NEUTRINO
public static final Lepton MUON
public static final Lepton MUON_NEUTRINO
public static final Lepton TAU
public static final Lepton TAU_NEUTRINO
public static Lepton[] values()
for (Lepton c : Lepton.values()) System.out.println(c);
public static Lepton 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.ONE_HALF
.getSpin
in interface SubatomicParticle
public boolean isElementary()
isElementary
in interface SubatomicParticle
Copyright © 2008–2018. All rights reserved.