Package nom.tam.fits

Class 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.
      • Methods 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
    • Constructor Detail

      • HeaderOrder

        public HeaderOrder()
    • 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 interface java.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.