@@ -0,0 +1,1965 @@
+/*%0A * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A * Mateusz Parzonka - initial API and implementation%0A */%0Apackage prm4j.indexing.realtime;%0A%0Aimport javax.naming.OperationNotSupportedException;%0A%0Aimport prm4j.indexing.BaseMonitor;%0Aimport prm4j.indexing.staticdata.MetaNode;%0A%0Apublic class NullNode implements Node %7B%0A%0A    public final static Node instance = new NullNode();%0A    private final static MonitorSet EMPTY_MONITOR_SET = new MonitorSet();%0A    private final static MonitorSet%5B%5D EMPTY_MONITOR_SETS = new MonitorSet%5B0%5D;%0A%0A    @Override%0A    public LowLevelBinding getKey() %7B%0A%09return null;%0A    %7D%0A%0A    public Node instance() %7B%0A%09return instance;%0A    %7D%0A%0A    @Override%0A    public Node next() %7B%0A%09throw new RuntimeException(new OperationNotSupportedException());%0A    %7D%0A%0A    @Override%0A    public void setNext(Node nextEntry) %7B%0A%09throw new RuntimeException(new OperationNotSupportedException());%0A    %7D%0A%0A    @Override%0A    public MetaNode getMetaNode() %7B%0A%09return null;%0A    %7D%0A%0A    @Override%0A    public BaseMonitor getMonitor() %7B%0A%09return null;%0A    %7D%0A%0A    @Override%0A    public void setMonitor(BaseMonitor monitor) %7B%0A%09throw new RuntimeException(new OperationNotSupportedException());%0A    %7D%0A%0A    @Override%0A    public Node getNode(LowLevelBinding binding) %7B%0A%09return null;%0A    %7D%0A%0A    @Override%0A    public Node getNodeNonCreative(LowLevelBinding binding) %7B%0A%09return null;%0A    %7D%0A%0A    @Override%0A    public void remove(LowLevelBinding binding) %7B%0A%09throw new RuntimeException(new OperationNotSupportedException());%0A    %7D%0A%0A    @Override%0A    public MonitorSet getMonitorSet(int monitorSetId) %7B%0A%09return EMPTY_MONITOR_SET;%0A    %7D%0A%0A    @Override%0A    public MonitorSet%5B%5D getMonitorSets() %7B%0A%09return EMPTY_MONITOR_SETS;%0A    %7D%0A%0A%7D%0A

Add NullNode