Record Class QuantumWellSimulator.EnergyLevel
java.lang.Object
java.lang.Record
org.episteme.natural.physics.quantum.QuantumWellSimulator.EnergyLevel
- Enclosing class:
QuantumWellSimulator
public static record QuantumWellSimulator.EnergyLevel(int n, double energyEv, double parity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEnergyLevel(int n, double energyEv, double parity) Creates an instance of aEnergyLevelrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleenergyEv()Returns the value of theenergyEvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intn()Returns the value of thenrecord component.doubleparity()Returns the value of theparityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnergyLevel
public EnergyLevel(int n, double energyEv, double parity) Creates an instance of aEnergyLevelrecord class.- Parameters:
n- the value for thenrecord componentenergyEv- the value for theenergyEvrecord componentparity- the value for theparityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
energyEv
public double energyEv()Returns the value of theenergyEvrecord component.- Returns:
- the value of the
energyEvrecord component
-
parity
public double parity()Returns the value of theparityrecord component.- Returns:
- the value of the
parityrecord component
-