Class Length

    • Method Detail

      • centimeters

        public final double centimeters()
        Gets the length in centimeters.
        Returns:
        The length in centimeters.
      • decimeters

        public final double decimeters()
        Gets the length in decimeters.
        Returns:
        The length in decimeters.
      • getIntrinsicValue

        public final double getIntrinsicValue()
        Gets the intrinsic value in the unit of this length attribute.
        Returns:
        The intrinsic value in the unit of this length attribute.
      • inches

        public final double inches()
        Gets the length in inches.
        Returns:
        The length in inches.
      • millimeters

        public final double millimeters()
        Gets the length in millimeters.
        Returns:
        The length in millimeters.
      • points

        public final double points()
        Gets the length in points.
        Returns:
        The length in points.
      • getScaleIntrinsicToInches

        protected abstract double getScaleIntrinsicToInches()
      • toInches

        public static Length.LengthFactory<Length.Inches> toInches()
        Gets a factory for creating length values in inches.
        Returns:
        A factory for creating length values in inches.
      • toPoints

        public static Length.LengthFactory<Length.Points> toPoints()
        Gets a factory for creating length values in points.
        Returns:
        A factory for creating length values in points.
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • charAt

        public default char charAt​(int index)
        Specified by:
        charAt in interface CharSequence