-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2012-2018. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
private int id;
public Bucket(int id) {
- this.nodes = new ArrayList<Integer>();
+ this.nodes = new ArrayList<>();
this.id = id;
}
/* Add the content of the bucket into a answer object. */
public void addToAnswer(Answer answer, int destination) {
- for (int id : this.nodes) {
- answer.getNodes().add(new Contact(id,id ^ destination));
+ for (int nodeId : this.nodes) {
+ answer.getNodes().add(new Contact(nodeId,nodeId ^ destination));
}
}