mirror of
https://github.com/corda/corda.git
synced 2025-06-15 13:48:14 +00:00
classpath: j.l.{Integer,Long}.to{Octal,Binary}String
Offer support for toOctalString and toBinaryString in Integer and Long.
This commit is contained in:
@ -94,6 +94,14 @@ public final class Long extends Number implements Comparable<Long> {
|
||||
return toString(v, 16);
|
||||
}
|
||||
|
||||
public static String toOctalString(long v) {
|
||||
return toString(v, 8);
|
||||
}
|
||||
|
||||
public static String toBinaryString(long v) {
|
||||
return toString(v, 2);
|
||||
}
|
||||
|
||||
public byte byteValue() {
|
||||
return (byte) value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user