HDPath: add list() getter for interoperability

This commit is contained in:
Sean Gilligan 2022-04-13 17:20:50 -07:00 committed by Andreas Schildbach
parent 23e2be1bf6
commit 428be7c325

View file

@ -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);