mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
* pas2kni: Added Enum.equals(int) to the Java part.
git-svn-id: trunk@34634 -
This commit is contained in:
parent
9727f289b1
commit
26ffffa683
@ -1851,6 +1851,7 @@ begin
|
||||
Fjs.WriteLn('public int Value;');
|
||||
Fjs.WriteLn('public int Ord() { return Value; }');
|
||||
Fjs.WriteLn('@Override public boolean equals(Object o) { return (o instanceof Integer) && Value == (Integer)o; }');
|
||||
Fjs.WriteLn('public boolean equals(int v) { return Value == v; }');
|
||||
Fjs.WriteLn('@Override public int hashCode() { return Value; }');
|
||||
Fjs.DecI;
|
||||
Fjs.WriteLn('}');
|
||||
|
Loading…
Reference in New Issue
Block a user