Class CaseIterator


  • public class CaseIterator
    extends java.lang.Object
    Incrementally returns the set of all strings that case-fold to the same value.
    • Constructor Summary

      Constructors 
      Constructor Description
      CaseIterator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Temporary test, just to see how the stuff works.
      java.lang.String next()
      Iterates through the case variants.
      void reset()
      Restart the iteration from the beginning, but with same source
      void reset​(java.lang.String source)
      Reset to different source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fromCaseFold

        private static java.util.Map fromCaseFold
      • toCaseFold

        private static java.util.Map toCaseFold
      • maxLength

        private static int maxLength
      • exceptionList

        private static java.lang.String[][] exceptionList
      • count

        private int count
      • variants

        private java.lang.String[][] variants
      • done

        private boolean done
      • counts

        private int[] counts
      • nextBuffer

        private java.lang.StringBuffer nextBuffer
    • Constructor Detail

      • CaseIterator

        public CaseIterator()
    • Method Detail

      • reset

        public void reset​(java.lang.String source)
        Reset to different source. Once reset, the iteration starts from the beginning.
        Parameters:
        source - The string to get case variants for
      • reset

        public void reset()
        Restart the iteration from the beginning, but with same source
      • next

        public java.lang.String next()
        Iterates through the case variants.
        Returns:
        next case variant. Each variant will case-fold to the same value as the source will. When the iteration is done, null is returned.
      • main

        public static void main​(java.lang.String[] args)
        Temporary test, just to see how the stuff works.