|
RuneHive-Game
|
This class specially written to convert the given number into words. More...
Public Member Functions | |
| String | belowBillion (long x) |
| String | belowCrore (long x) |
| long | getNumber () |
| String | getNumberInWords () |
| long | leftChars (int n) |
| long | leftChars (long num, int n) |
| int | length (long num) |
| long | rightChars (int n) |
| long | rightChars (long num, int n) |
| void | setNumber (long num) |
Static Public Member Functions | |
| static Words | getInstance (long num) |
| static String | leftChars (String str, int n) |
| static String | rightChars (String str, int n) |
Package Attributes | |
| long | num |
Private Member Functions | |
| String | belowHundred (long x) |
| String | belowLakh (long x) |
| String | belowTen (long x) |
| String | belowThousand (long x) |
| String | belowTwenty (long x) |
| Words () | |
| Words (long num) | |
This class specially written to convert the given number into words.
It will support upto 1 crore.
Definition at line 11 of file Words.java.
|
private |
Definition at line 14 of file Words.java.
References num.
Referenced by getInstance().
|
private |
| String com.runehive.util.Words.belowBillion | ( | long | x | ) |
Definition at line 188 of file Words.java.
References belowCrore(), belowHundred(), belowLakh(), belowTen(), belowThousand(), belowTwenty(), leftChars(), length(), and rightChars().
Referenced by getNumberInWords().
| String com.runehive.util.Words.belowCrore | ( | long | x | ) |
Definition at line 171 of file Words.java.
References belowHundred(), belowLakh(), belowTen(), belowThousand(), belowTwenty(), leftChars(), length(), and rightChars().
Referenced by belowBillion(), and getNumberInWords().
|
private |
Definition at line 120 of file Words.java.
References belowTen(), belowTwenty(), leftChars(), and rightChars().
Referenced by belowBillion(), belowCrore(), belowLakh(), belowThousand(), and getNumberInWords().
|
private |
Definition at line 156 of file Words.java.
References belowHundred(), belowTen(), belowThousand(), belowTwenty(), leftChars(), length(), and rightChars().
Referenced by belowBillion(), belowCrore(), and getNumberInWords().
|
private |
Definition at line 68 of file Words.java.
Referenced by belowBillion(), belowCrore(), belowHundred(), belowLakh(), belowThousand(), belowTwenty(), and getNumberInWords().
|
private |
Definition at line 146 of file Words.java.
References belowHundred(), belowTen(), belowTwenty(), leftChars(), and rightChars().
Referenced by belowBillion(), belowCrore(), belowLakh(), and getNumberInWords().
|
private |
Definition at line 92 of file Words.java.
References belowTen().
Referenced by belowBillion(), belowCrore(), belowHundred(), belowLakh(), belowThousand(), and getNumberInWords().
|
static |
Definition at line 30 of file Words.java.
Referenced by com.runehive.util.Utility.convertWord().
| long com.runehive.util.Words.getNumber | ( | ) |
| String com.runehive.util.Words.getNumberInWords | ( | ) |
Definition at line 208 of file Words.java.
References belowBillion(), belowCrore(), belowHundred(), belowLakh(), belowTen(), belowThousand(), belowTwenty(), and num.
Referenced by com.runehive.util.Utility.convertWord().
| long com.runehive.util.Words.leftChars | ( | int | n | ) |
Definition at line 48 of file Words.java.
References leftChars(), and num.
| long com.runehive.util.Words.leftChars | ( | long | num, |
| int | n ) |
Definition at line 56 of file Words.java.
References leftChars(), and num.
|
static |
Definition at line 34 of file Words.java.
Referenced by belowBillion(), belowCrore(), belowHundred(), belowLakh(), belowThousand(), leftChars(), and leftChars().
| int com.runehive.util.Words.length | ( | long | num | ) |
Definition at line 64 of file Words.java.
References num.
Referenced by belowBillion(), belowCrore(), and belowLakh().
| long com.runehive.util.Words.rightChars | ( | int | n | ) |
Definition at line 52 of file Words.java.
References num, and rightChars().
| long com.runehive.util.Words.rightChars | ( | long | num, |
| int | n ) |
Definition at line 60 of file Words.java.
References num, and rightChars().
|
static |
Definition at line 41 of file Words.java.
Referenced by belowBillion(), belowCrore(), belowHundred(), belowLakh(), belowThousand(), rightChars(), and rightChars().
| void com.runehive.util.Words.setNumber | ( | long | num | ) |
|
package |
Definition at line 12 of file Words.java.
Referenced by getInstance(), getNumber(), getNumberInWords(), leftChars(), leftChars(), length(), rightChars(), rightChars(), setNumber(), Words(), and Words().