📄 account.java
字号:
package Bank;
/**
* <ul>
* <li> <b>IDL Source</b> "Bank.idl"
* <li> <b>IDL Name</b> ::Bank::Account
* <li> <b>Repository Id</b> IDL:Bank/Account:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* valuetype Account : Bank.AbstractAccount {
...
};
* </pre>
*/
public abstract class Account implements org.omg.CORBA.portable.StreamableValue , Bank.AbstractAccount {
/**
* <pre>
* private float balance;
* </pre>
*/
protected float balance;
public java.lang.String toString() {
final java.lang.StringBuffer _ret = new java.lang.StringBuffer("valuetype Bank.Account {");
_ret.append("\n");
_ret.append("float balance=");
_ret.append(balance);
_ret.append("\n");
_ret.append("}");
return _ret.toString();
}
public boolean equals (java.lang.Object o) {
if (this == o) return true;
if (o == null) return false;
if (o instanceof Bank.Account) {
final Bank.Account obj = (Bank.Account)o;
boolean res = true;
do {
res = this.balance == obj.balance;
} while (false);
return res;
}
else {
return false;
}
}
public org.omg.CORBA.TypeCode _type () {
return Bank.AccountHelper.type();
}
public void _read (final org.omg.CORBA.portable.InputStream _input) {
balance = _input.read_float();
}
public void _write (final org.omg.CORBA.portable.OutputStream _output) {
_output.write_float((float)balance);
}
private static java.lang.String[] _truncatable_ids = {
"IDL:Bank/Account:1.0"
};
public java.lang.String[] _truncatable_ids () {
return _truncatable_ids;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -