public final class SatelliteIdentifier extends Object implements IEquatable<SatelliteIdentifier>, ImmutableValueType
Constructor and Description |
---|
SatelliteIdentifier()
Initializes a new instance.
|
SatelliteIdentifier(char satelliteConstellationType,
int satelliteId)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(SatelliteIdentifier other)
Indicates whether another instance of this type is exactly equal to this instance.
|
char |
getSatelliteConstellationType()
Gets the constellation type for this satellite.
|
int |
getSatelliteId()
Gets the integer ID of the satellite.
|
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(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if the two instances are not exactly equal. |
public SatelliteIdentifier()
public SatelliteIdentifier(char satelliteConstellationType, int satelliteId)
satelliteConstellationType
- The constellation type for this satellite. From the SP3c file definition document, the following definitions apply:
'G' denotes GPS constellation.
'R' denotes GLONASS constellation.
'L' denotes Low-Earth orbit satellites.
'E' denotes Galileo constellation.satelliteId
- The integer ID of the satellite. For GPS constellations, this is the PseudoRandom Noise number (PRN).public final int getSatelliteId()
public final char getSatelliteConstellationType()
Gets the constellation type for this satellite. From the SP3c file definition document, the following definitions apply:
public final boolean equalsType(@Nonnull SatelliteIdentifier other)
equalsType
in interface IEquatable<SatelliteIdentifier>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.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 int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier 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(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier 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
.