org.iges.util
Class Range
java.lang.Object
|
+--org.iges.util.Range
- public class Range
- extends java.lang.Object
This is actually a container for three similar classes, Range.Double, Range.Long, and Range.Date.
All represent an interval, either of real #s, integers, or time. The
methods are similar in function, but take different primitive types as arguments
Although there is no formal relationship between them, they are grouped together
to emphasize their similarity.
Last modified: $Date: 2003/10/13 18:59:24 $
Revision for this file: $Revision: 1.5 $
Release name: $Name: $
Original for this file: $Source: /cvs/gds/src/org/iges/util/Range.java,v $
Nested Class Summary |
static class |
Range.Date
Represents a range of dates. |
static class |
Range.Double
Represents a range of floating-point numbers. |
static class |
Range.Long
Represents a range of integers. |
Constructor Summary |
Range()
|
Method Summary |
static java.util.Date |
parseGradsFormat(java.lang.String dateString)
Parses a date from (hopefully) any of the various formats used
by GrADS into a Java Date object. |
static java.lang.String |
printGradsDate(java.util.Date date)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gradsDateFormats
protected static final java.text.SimpleDateFormat[] gradsDateFormats
Range
public Range()
printGradsDate
public static java.lang.String printGradsDate(java.util.Date date)
parseGradsFormat
public static java.util.Date parseGradsFormat(java.lang.String dateString)
throws java.lang.IllegalArgumentException
- Parses a date from (hopefully) any of the various formats used
by GrADS into a Java Date object.
java.lang.IllegalArgumentException