Class LengthList.LengthListFactory<L extends Length>

  • Type Parameters:
    L - Type of the length values in this list.
    Enclosing class:
    LengthList<L extends Length>

    public static final class LengthList.LengthListFactory<L extends Length>
    extends Object
    A factory for creating LengthList from values in a given unit.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • fromCentimeters

        public LengthList<L> fromCentimeters​(double... centimeters)
        Creates a length list from centimeter values.
        Parameters:
        centimeters - Centimeter values.
        Returns:
        A new length list with the given values.
      • fromCentimeters

        public LengthList<L> fromCentimeters​(double centimeters)
        Creates a length list from a centimeter value.
        Parameters:
        centimeters - Centimeters value.
        Returns:
        A new length list with the given value.
      • fromDecimeters

        public LengthList<L> fromDecimeters​(double... decimeters)
        Creates a length list from decimeter values.
        Parameters:
        decimeters - Decimeter values.
        Returns:
        A new length list with the given values.
      • fromDecimeters

        public LengthList<L> fromDecimeters​(double decimeters)
        Creates a length list from a decimeter value.
        Parameters:
        decimeters - Decimeters value.
        Returns:
        A new length list with the given value.
      • fromInches

        public LengthList<L> fromInches​(double... inches)
        Creates a length list from inch values.
        Parameters:
        inches - Inch values.
        Returns:
        A new length list with the given values.
      • fromInches

        public LengthList<L> fromInches​(double inches)
        Creates a length list from an inches value.
        Parameters:
        inches - Inches value.
        Returns:
        A new length list with the given value.
      • fromMillimeters

        public LengthList<L> fromMillimeters​(double... millimeters)
        Creates a length list from millimeter values.
        Parameters:
        millimeters - Millimeter values.
        Returns:
        A new length list with the given values.
      • fromMillimeters

        public LengthList<L> fromMillimeters​(double millimeters)
        Creates a length list from a millimeters value.
        Parameters:
        millimeters - Millimeters value.
        Returns:
        A new length list with the given value.
      • fromPoints

        public LengthList<L> fromPoints​(double points)
        Creates a length list from a point value.
        Parameters:
        points - Point value.
        Returns:
        A new length list with the given value.
      • fromPoints

        public LengthList<L> fromPoints​(double... points)
        Creates a length list from point values.
        Parameters:
        points - Point values.
        Returns:
        A new length list with the given values.