Package nom.tam.fits

Class HeaderOrder

java.lang.Object
nom.tam.fits.HeaderOrder
All Implemented Interfaces:
Serializable, Comparator<String>

public class HeaderOrder extends Object implements Comparator<String>, Serializable
Deprecated.
(for internal use) Visibility should be reduced to package level in the future
This class implements a comparator which ensures that FITS keywords are written out in a proper order.
See Also:
  • Constructor Details

    • HeaderOrder

      public HeaderOrder()
      Deprecated.
  • Method Details

    • compare

      public int compare(String c1, String c2)
      Deprecated.
      Determines the order in which the cards should be added to the header. 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 interface Comparator<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.