/** * Constructor of the class. Receives a reference of the chord node and * initializes the size, pointer next and the fingers table. * * @param nodeChord The reference of the chord node. */ FingersTable(ChordNode nodeChord, KeyFactory keyFactory) { this.size = keyFactory.getKeyLength(); this.chordNode = nodeChord; this.next = 0; this.fingersTable = new ChordKey[size]; this.keyFactory = keyFactory; }