Class NormalizeUtils.Permutator

  • Enclosing class:
    NormalizeUtils

    private static class NormalizeUtils.Permutator
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean done  
      private java.util.Map<java.lang.String,​java.lang.Boolean> left  
      private java.util.List<java.lang.String> list  
    • Constructor Summary

      Constructors 
      Constructor Description
      Permutator​(java.util.List<java.lang.String> list)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Returns true if there is another permutation.
      java.util.List<java.lang.String> next()
      Gets the next permutation.
      • Methods inherited from class java.lang.Object

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

      • list

        private final java.util.List<java.lang.String> list
      • done

        private boolean done
      • left

        private final java.util.Map<java.lang.String,​java.lang.Boolean> left
    • Constructor Detail

      • Permutator

        public Permutator​(java.util.List<java.lang.String> list)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if there is another permutation.
        Returns:
        true if there is another permutation, false if not.
      • next

        public java.util.List<java.lang.String> next()
        Gets the next permutation. Call hasNext() to ensure there is another one first.
        Returns:
        the next permutation.