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 TypeMethodDescriptionintWhich 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 intFind the index for NAXISn keywordsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
comparein 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
-