Class DefaultSplitter

    • Field Detail

      • m_Percentage

        protected double m_Percentage
        the percentage (0-1).
    • Constructor Detail

      • DefaultSplitter

        public DefaultSplitter()
    • Method Detail

      • setPercentage

        public void setPercentage​(double value)
        Sets the split percentage.
        Parameters:
        value - the percentage (0-1)
      • getPercentage

        public double getPercentage()
        Returns the split percentage.
        Returns:
        the percentage (0-1)
      • percentageTipText

        public String percentageTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doSplit

        protected <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,​List<Binnable<T>>> doSplit​(List<Binnable<T>> data)
        Splits the data into two.
        Specified by:
        doSplit in class AbstractSplitter
        Type Parameters:
        T - the payload type
        Parameters:
        data - the data to split
        Returns:
        the split data