Pathref
Similar to Methref, the Pathref returns the bean path of the property. The usage is very similar:
1
Pathref<User> p = Pathref.on(User.class);
2
​
3
p.path(p.to()
4
.getFriends()
5
.get(2)
6
.getAddress()
7
.getStreet()); // friends[2].address.street
Copied!
Bean path can be used later in reading the property using e.g. BeanUtil.
Last modified 8mo ago
Export as PDF
Copy link