Package nom.tam.fits
Class HeaderOrder
- java.lang.Object
-
- nom.tam.fits.HeaderOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<java.lang.String>
public class HeaderOrder extends java.lang.Object implements java.util.Comparator<java.lang.String>, java.io.Serializable
This class implements a comparator which ensures that FITS keywords are written out in a proper order.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HeaderOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String c1, java.lang.String c2)
Which order should the cards indexed by these keys be written out? This method assumes that the arguments are either the FITS Header keywords as strings, and some other type (or null) for comment style keywords.
-
-
-
Method Detail
-
compare
public int compare(java.lang.String c1, java.lang.String c2)
Which order should the cards indexed by these keys be written out? This method assumes that the arguments are either the FITS Header keywords as strings, and some other type (or null) for comment style keywords.- Specified by:
compare
in interfacejava.util.Comparator<java.lang.String>
- Returns:
- -1 if the first argument should be written first
1 if the second argument should be written first
0 if either is legal.
-
-