class Contact { // Height of bag is final long time; // Time of the contact with the bag (in millis) final int x; final int y; final int strength; // 0 - 100 Contact(long time, int x, int y, int strength) { this.time = time; this.x = x; this.y = y; this.strength = strength; } }