Class ForEach<EACHTYPE>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public abstract class ForEach<EACHTYPE>
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ForEach

        public ForEach​(AbstractHtml base,
                       java.util.Collection<EACHTYPE> values)
        Parameters:
        base - the parent object i.e. the outer tag, usually this (current object). This argument cannot be null.
        values - from which to do the iteration
      • ForEach

        @SafeVarargs
        public ForEach​(AbstractHtml base,
                       EACHTYPE... values)
        Parameters:
        base - the parent object i.e. the outer tag, usually this (current object). This argument cannot be null.
        values - from which to do the iteration
    • Method Detail

      • each

        public abstract void each​(AbstractHtml base,
                                  java.lang.Object values,
                                  EACHTYPE eachValue)
        invokes for each looping.
        Parameters:
        base - the base object given as the argument.
        values - the values object passed as a constructor argument. Type cast to the corresponding type.
        eachValue - each value from the given values passed in constructor.
        Since:
        1.0.0