Skip to content

Instantly share code, notes, and snippets.

public class LinkedSet<Row> {
/* "Empty" list, is first and last with null values - first & last are same */
private Node first = null;
private Node last = null;
private Map<Row, Node> index = new HashMap<Row, Node>();
/* Linked-list node */
private final class Node {