nodes = new ArrayList<>();
}
- int getDestinationId() {
+ protected int getDestinationId() {
return destinationId;
}
- ArrayList<Contact> getNodes() {
+ protected ArrayList<Contact> getNodes() {
return nodes;
}
- int size() {
+ protected int size() {
return nodes.size();
}
/* Returns if the destination has been found */
public boolean destinationFound() {
- if (nodes.size() < 1) {
+ if (nodes.isEmpty()) {
return false;
}
Contact tail = nodes.get(0);