public static class Temperature_Profile.Data extends java.lang.Object implements java.lang.Comparable<Temperature_Profile.Data>
The data sample is comparable to other data samples for sorting. Because
only the date component is considered in the Comparable
implementation, however, this class imposes an ordering that is inconsistent
with equals.
Constructor and Description |
---|
Data(java.util.Date date,
double fpaTemperature,
double fpeaTemperature)
Creates a new data sample with the indicated date and temperatures.
|
Data(java.util.Date date,
Temperatures temperatures) |
Data(long millis,
double fpaTemperature,
double fpeaTemperature) |
Data(long millis,
Temperatures temperatures) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Temperature_Profile.Data d)
Compares this data sample with another.
|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
java.util.Date |
getDate()
Gets the date.
|
double |
getFpaTemperature()
Gets the FPA temperature.
|
double |
getFpeaTemperature()
Gets the FPEA temperature/
|
int |
hashCode()
Returns a hash code value for this data sample.
|
java.lang.String |
toString()
Gets a string representation of this data sample.
|
public Data(java.util.Date date, double fpaTemperature, double fpeaTemperature)
date
- the date of the sample.fpaTemperature
- the FPA temperature.fpeaTemperature
- the FPEA temperature.public Data(long millis, double fpaTemperature, double fpeaTemperature)
public Data(java.util.Date date, Temperatures temperatures)
public Data(long millis, Temperatures temperatures)
public java.util.Date getDate()
public double getFpaTemperature()
public double getFpeaTemperature()
public java.lang.String toString()
Date.getTime()
/ 1000.)toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is compared.public int compareTo(Temperature_Profile.Data d)
compareTo
in interface java.lang.Comparable<Temperature_Profile.Data>
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona