Package nom.tam.fits
Class HeaderOrder
java.lang.Object
nom.tam.fits.HeaderOrder
- All Implemented Interfaces:
Serializable
,Comparator<String>
This class implements a comparator which ensures that FITS keywords are
written out in a proper order.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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.private static int
Find the index for NAXISn keywordsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization id.- See Also:
-
-
Constructor Details
-
HeaderOrder
public HeaderOrder()
-
-
Method Details
-
compare
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 interfaceComparator<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.
-
naxisN
Find the index for NAXISn keywords
-