Class CellNumberStringMod

  • All Implemented Interfaces:

    public class CellNumberStringMod
    extends java.lang.Object
    implements java.lang.Comparable<CellNumberStringMod>
    Internal helper class for CellNumberFormatter This class represents a single modification to a result string. The way this works is complicated, but so is numeric formatting. In general, for most formats, we use a DecimalFormat object that will put the string out in a known format, usually with all possible leading and trailing zeros. We then walk through the result and the original format, and note any modifications that need to be made. Finally, we go through and apply them all, dealing with overlapping modifications.
    • Field Summary

      Modifier and Type Field Description
      static int AFTER  
      static int BEFORE  
      static int REPLACE  
    • Constructor Summary

      Constructor Description
      CellNumberStringMod​( start, boolean startInclusive, end, boolean endInclusive)  
      CellNumberStringMod​( start, boolean startInclusive, end, boolean endInclusive, char toAdd)  
      CellNumberStringMod​( special, java.lang.CharSequence toAdd, int op)  
    • Constructor Detail

      • CellNumberStringMod

        public CellNumberStringMod​( special,
                                   java.lang.CharSequence toAdd,
                                   int op)
      • CellNumberStringMod

        public CellNumberStringMod​( start,
                                   boolean startInclusive,
                                   boolean endInclusive,
                                   char toAdd)
      • CellNumberStringMod

        public CellNumberStringMod​( start,
                                   boolean startInclusive,
                                   boolean endInclusive)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object that)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • getSpecial

        public getSpecial()
      • getOp

        public int getOp()
      • getToAdd

        public java.lang.CharSequence getToAdd()
      • getEnd

        public getEnd()
      • isStartInclusive

        public boolean isStartInclusive()
      • isEndInclusive

        public boolean isEndInclusive()