Back to project page DisposableIncome-OldJava.
The source code is released under:
MIT License
If you think the Android project DisposableIncome-OldJava listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package uk.co.wilka.disposableincome; // w ww.j a v a 2 s. co m import java.io.InvalidObjectException; public enum WithdrawType { Actual(0), Predicted(1); private final int id; WithdrawType(int id) { this.id = id; } public int getId() { return id; } public static WithdrawType fromId(int id) { if(id == Actual.getId()) { return Actual; } else { return Predicted; } } }