Class IntConst

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class IntConst
    extends IntSequence
    Returns a constant set of integer numbers, as passed to the constructor or via setValues(int...). This value sequence is repeated if all values are returned once. Optionally the order of items is permuted if randomizeOrder was set to true.
    Author:
    Torsten Hildebrandt
    See Also:
    Serialized Form
    • Constructor Detail

      • IntConst

        public IntConst()
      • IntConst

        public IntConst​(int... vs)
    • Method Detail

      • getValueRange

        public Pair<Double,​Double> getValueRange()
        Description copied from class: DblSequence
        This method computes the minimum and maximum support values (range of possible values) of this stream.
        Overrides:
        getValueRange in class DblSequence
        Returns:
        A Pair containing the minimum and maximum support values.
      • getValues

        public int[] getValues()
      • setValues

        public void setValues​(int... vs)
        Sets the values to return as members of this number stream.
        Parameters:
        vs - The values to use.
      • isRandomizeOrder

        public boolean isRandomizeOrder()
      • setRandomizeOrder

        public void setRandomizeOrder​(boolean randomizeOrder)
        If set to true, the elements of values will be returned in a randomly permuted order. Otherwise the values will be returned in exactly the same order as given in values.
        Parameters:
        randomizeOrder - Whether or not to randomize the order.