All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.osamabmaq.tafqeetj.numbers.QuantitiveNumberNames Maven / Gradle / Ivy

Go to download

A Java library to convert numbers from digital format to words format in Arabic language.

The newest version!
package io.github.osamabmaq.tafqeetj.numbers;

public class QuantitiveNumberNames {
    private final String nameWhenEqualsOne;
    private final String nameWhenEqualsTwo;
    private final String nameWhenBetweenThreeAndTen; //Inclusive
    private final String nameWhenBetweenElevenAndNinetyNine; //Inclusive

    public QuantitiveNumberNames(String nameWhenEqualsOne,
                                 String nameWhenEqualsTwo,
                                 String nameWhenBetweenThreeAndTen,
                                 String nameWhenBetweenElevenAndNinetyNine) {
        this.nameWhenEqualsOne = nameWhenEqualsOne;
        this.nameWhenEqualsTwo = nameWhenEqualsTwo;
        this.nameWhenBetweenThreeAndTen = nameWhenBetweenThreeAndTen;
        this.nameWhenBetweenElevenAndNinetyNine = nameWhenBetweenElevenAndNinetyNine;
    }

    public String getNameWhenEqualsOne() {
        return nameWhenEqualsOne;
    }

    public String getNameWhenEqualsTwo() {
        return nameWhenEqualsTwo;
    }

    public String getNameWhenBetweenThreeAndTen() {
        return nameWhenBetweenThreeAndTen;
    }

    public String getNameWhenBetweenElevenAndNinetyNine() {
        return nameWhenBetweenElevenAndNinetyNine;
    }

    @Override
    public String toString() {
        return "QuantitiveNumberNames{" +
                "nameWhenEqualsOne='" + nameWhenEqualsOne + '\'' +
                ", nameWhenEqualsTwo='" + nameWhenEqualsTwo + '\'' +
                ", nameWhenBetweenThreeAndTen='" + nameWhenBetweenThreeAndTen + '\'' +
                ", nameWhenBetweenElevenAndNinetyNine='" + nameWhenBetweenElevenAndNinetyNine + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy