mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-22 22:25:41 +01:00
HDPath: add list()
getter for interoperability
This commit is contained in:
parent
23e2be1bf6
commit
428be7c325
1 changed files with 8 additions and 0 deletions
|
@ -227,6 +227,14 @@ public class HDPath extends AbstractList<ChildNumber> {
|
|||
return this.extend(HDPath.M(path2));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a simple list of {@link ChildNumber}
|
||||
* @return an unmodifiable list of {@code ChildNumber}
|
||||
*/
|
||||
public List<ChildNumber> list() {
|
||||
return unmodifiableList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChildNumber get(int index) {
|
||||
return unmodifiableList.get(index);
|
||||
|
|
Loading…
Add table
Reference in a new issue