mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 23:46:49 +07:00
GitOrigin-RevId: 02cb7015ed3639523223e2272e2c88d6b71398dc
28 lines
499 B
Java
28 lines
499 B
Java
class Test {
|
|
static AccountManager accountManager = new AccountManager();
|
|
|
|
public static void main(String[] args) {
|
|
String id = accountManager
|
|
.getAccounts()/*<# List<Account> #>*/
|
|
.get(0)/*<# Account #>*/
|
|
.getId()/*<# UUID #>*/
|
|
.toString();
|
|
}
|
|
|
|
}
|
|
|
|
class AccountManager {
|
|
List<Account> accounts = new ArrayList<>();
|
|
|
|
public List<Account> getAccounts() {
|
|
return accounts;
|
|
}
|
|
}
|
|
|
|
class Account {
|
|
private UUID id;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
} |