mirror of
https://github.com/corda/corda.git
synced 2025-03-15 08:41:04 +00:00
Add Integer valueOf(String) method
This commit is contained in:
parent
aeafb52bcb
commit
b19ce6378a
@ -30,6 +30,10 @@ public final class Integer extends Number implements Comparable<Integer> {
|
||||
return new Integer(value);
|
||||
}
|
||||
|
||||
public static Integer valueOf(String value) {
|
||||
return valueOf(parseInt(value));
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
return o instanceof Integer && ((Integer) o).value == value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user