HiRISE

HiRISE.HiPlan.Utilities
Class LongitudeInterval

java.lang.Object
  extended by HiRISE.HiPlan.Utilities.LongitudeInterval
All Implemented Interfaces:
Comparable<LongitudeInterval>

public class LongitudeInterval
extends Object
implements Comparable<LongitudeInterval>

An immutable closed circular longitude interval. Arguments can be in either the [-180,180] domain or the [0,360] domain.

See Also:
Interval

Field Summary
static String ID
          Class identification name with source code version and date.
static double NEGATIVE_LONGITUDE_MAX
           
static double NEGATIVE_LONGITUDE_MIN
           
static double POSITIVE_LONGITUDE_MAX
           
static double POSITIVE_LONGITUDE_MIN
           
 
Constructor Summary
LongitudeInterval(double start, double end)
           
 
Method Summary
 int compareTo(LongitudeInterval i)
           
 boolean contains(double value)
           
 boolean equals(Object o)
           
 String format(int decimalPlaces)
           
 double getEnd()
           
 double getStart()
           
 int hashCode()
           
static void main(String[] args)
          For testing.
 String toString()
           
static LongitudeInterval valueOf(String text)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

POSITIVE_LONGITUDE_MIN

public static final double POSITIVE_LONGITUDE_MIN
See Also:
Constant Field Values

POSITIVE_LONGITUDE_MAX

public static final double POSITIVE_LONGITUDE_MAX
See Also:
Constant Field Values

NEGATIVE_LONGITUDE_MIN

public static final double NEGATIVE_LONGITUDE_MIN
See Also:
Constant Field Values

NEGATIVE_LONGITUDE_MAX

public static final double NEGATIVE_LONGITUDE_MAX
See Also:
Constant Field Values
Constructor Detail

LongitudeInterval

public LongitudeInterval(double start,
                         double end)
Method Detail

getStart

public double getStart()

getEnd

public double getEnd()

contains

public boolean contains(double value)

format

public String format(int decimalPlaces)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(LongitudeInterval i)
Specified by:
compareTo in interface Comparable<LongitudeInterval>

valueOf

public static LongitudeInterval valueOf(String text)

main

public static void main(String[] args)
For testing.

Parameters:
args - the arguments: start value, stop value, test value.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona