Class FixedRepeatValue


  • public class FixedRepeatValue
    extends TemplateValue
    This class represents an fixed-repeat template value. This value is preprocessed before grid sizing algorithm so its only exists at template level.
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedRepeatValue​(int repeatCount, java.util.List<GridValue> values)
      Create a new fixed-repeat value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getRepeatCount()
      Gets number of template values repetitions.
      java.util.List<GridValue> getValues()
      Gets template values which should be repeated.
      • Methods inherited from class java.lang.Object

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

      • values

        private final java.util.List<GridValue> values
      • repeatCount

        private final int repeatCount
    • Constructor Detail

      • FixedRepeatValue

        public FixedRepeatValue​(int repeatCount,
                                java.util.List<GridValue> values)
        Create a new fixed-repeat value
        Parameters:
        repeatCount - number of repetitions
        values - template values to repeat
    • Method Detail

      • getValues

        public java.util.List<GridValue> getValues()
        Gets template values which should be repeated.
        Returns:
        template values list
      • getRepeatCount

        public int getRepeatCount()
        Gets number of template values repetitions.
        Returns:
        number of template values repetitions