Module ical4j.core

Class NumberList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess

public class NumberList extends ArrayList<Integer> implements Serializable
$Id$ [29-May-2004] Defines a list of numbers.
See Also:
  • Constructor Details

    • NumberList

      public NumberList()
      Default constructor.
    • NumberList

      public NumberList(ValueRange valueRange, boolean allowsNegativeValues)
      Construct a number list restricted by the specified ValueRange.
      Parameters:
      valueRange - a range defining the lower and upper bounds of allowed values
      allowsNegativeValues - allow negative values, where abs(value) is within the specified range
    • NumberList

      @Deprecated public NumberList(int minValue, int maxValue, boolean allowsNegativeValues)
      Constructor with limits.
      Parameters:
      minValue - the minimum allowable value
      maxValue - the maximum allowable value
      allowsNegativeValues - indicates whether negative values are allowed
    • NumberList

      public NumberList(String aString)
      Constructor.
      Parameters:
      aString - a string representation of a number list
    • NumberList

      public NumberList(String aString, ValueRange valueRange, boolean allowsNegativeValues)
      Construct a number list restricted by the specified ValueRange.
      Parameters:
      aString - a string representation of a list of values
      valueRange - a range defining the lower and upper bounds of allowed values
      allowsNegativeValues - allow negative values, where abs(value) is within the specified range
    • NumberList

      public NumberList(Collection<Integer> values, ValueRange valueRange, boolean allowsNegativeValues)
    • NumberList

      @Deprecated public NumberList(String aString, int minValue, int maxValue, boolean allowsNegativeValues)
      Parameters:
      aString - a string representation of a number list
      minValue - the minimum allowable value
      maxValue - the maximum allowable value
      allowsNegativeValues - indicates whether negative values are allowed
  • Method Details