public class PulsedSignalData extends Object implements IEquatable<PulsedSignalData>
Constructor and Description |
---|
PulsedSignalData(double pulseRepetitionFrequency,
double pulseWidth,
int pulseCount)
Creates a new instance.
|
PulsedSignalData(PulsedSignalData existingInstance)
Initializes a new instance as a copy of an existing instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(PulsedSignalData left,
PulsedSignalData right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(PulsedSignalData other)
Indicates whether another instance of this type is exactly equal to this instance.
|
int |
getPulseCount()
Gets the pulse count.
|
double |
getPulseRepetitionFrequency()
Gets the pulse repetition frequency.
|
double |
getPulseWidth()
Gets the pulse width.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(PulsedSignalData left,
PulsedSignalData right)
Returns
true if the two instances are not exactly equal. |
public PulsedSignalData(double pulseRepetitionFrequency, double pulseWidth, int pulseCount)
pulseRepetitionFrequency
- The pulse repetition frequency.pulseWidth
- The pulse width.pulseCount
- The pulse count.public PulsedSignalData(@Nonnull PulsedSignalData existingInstance)
existingInstance
- The existing instance to copy.ArgumentNullException
- Thrown when existingInstance
is null
.public final double getPulseRepetitionFrequency()
public final double getPulseWidth()
public final int getPulseCount()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public final boolean equalsType(PulsedSignalData other)
equalsType
in interface IEquatable<PulsedSignalData>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(PulsedSignalData left, PulsedSignalData right)
true
if the two instances are exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
represents the same value as right
; otherwise false
.public static boolean notEquals(PulsedSignalData left, PulsedSignalData right)
true
if the two instances are not exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
does not represent the same value as right
; otherwise false
.