public final class SatelliteIdentifier extends Object implements Comparable<SatelliteIdentifier>, IEquatable<SatelliteIdentifier>, ImmutableValueType
SP3cEphemeris,
SP3dEphemeris| Constructor and Description |
|---|
SatelliteIdentifier()
Initializes a new instance.
|
SatelliteIdentifier(char satelliteConstellationType,
int satelliteId)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SatelliteIdentifier other)
Compares this instance with another instance of the same type.
|
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.
|
static boolean |
greaterThan(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if left is greater than right. |
static boolean |
greaterThanOrEqual(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if left is greater than or equal to right. |
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 |
lessThan(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if left is less than right. |
static boolean |
lessThanOrEqual(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if left is less than or equal to right. |
static boolean |
notEquals(SatelliteIdentifier left,
SatelliteIdentifier right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns a string representation of the object.
|
public SatelliteIdentifier()
public SatelliteIdentifier(char satelliteConstellationType,
int satelliteId)
satelliteConstellationType - The constellation type for this satellite.
From the SP3-c file definition document, the following definitions apply:
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 SP3-c 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 Objectobj - 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(),
HashMappublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public final int compareTo(@Nonnull SatelliteIdentifier other)
compareTo in interface Comparable<SatelliteIdentifier>other - An object to compare with this instance.| Value | Meaning |
|---|---|
| Less than zero |
This instance is less than other.
|
| Zero |
This instance is equal to other.
|
| Greater than zero |
This instance is greater than other.
|
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.public static boolean lessThan(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier right)
true if left is less than right.left - The instance to compare to right.right - The instance to compare to left.true if left is less than right; otherwise false.public static boolean greaterThan(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier right)
true if left is greater than right.left - The instance to compare to right.right - The instance to compare to left.true if left is greater than right; otherwise false.public static boolean lessThanOrEqual(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier right)
true if left is less than or equal to right.left - The instance to compare to right.right - The instance to compare to left.true if left is less than or equal to right; otherwise false.public static boolean greaterThanOrEqual(@Nonnull SatelliteIdentifier left, @Nonnull SatelliteIdentifier right)
true if left is greater than or equal to right.left - The instance to compare to right.right - The instance to compare to left.true if left is greater than or equal to right; otherwise false.