Class TtcNumber


  • public final class TtcNumber
    extends TtcExpression
    Immutable class representing a TTC number in a MAL language.
    Since:
    1.0.0
    • Constructor Detail

      • TtcNumber

        public TtcNumber​(double value)
        Constructs a new TtcNumber object.
        Parameters:
        value - the value of the new TtcNumber object
        Since:
        1.0.0
    • Method Detail

      • getValue

        public double getValue()
        Returns the value of this TtcNumber object.
        Returns:
        the value of this TtcNumber object
        Since:
        1.0.0
      • getMeanTtc

        public double getMeanTtc()
        Description copied from class: TtcExpression
        Returns the mean TTC of this TtcExpression object.
        Overrides:
        getMeanTtc in class TtcExpression
        Returns:
        the mean TTC of this TtcExpression object
      • toJson

        public JsonObject toJson()
        Description copied from class: TtcExpression
        Returns the JSON representation of this TtcExpression object.
        Specified by:
        toJson in class TtcExpression
        Returns:
        the JSON representation of this TtcExpression object