@@ -0,0 +1,2004 @@
+/*%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 java.lang.ref.ReferenceQueue;%0Aimport java.lang.ref.WeakReference;%0A%0Aimport prm4j.indexing.map.MinimalMapEntry;%0A%0Apublic class DefaultLowLevelBinding extends WeakReference%3CObject%3E implements LowLevelBinding,%0A%09MinimalMapEntry%3CObject, DefaultLowLevelBinding%3E %7B%0A%0A    private long timestamp;%0A    private boolean disabled;%0A    private final int hashCode;%0A    private DefaultLowLevelBinding next;%0A%0A    public DefaultLowLevelBinding(Object boundObject, int parameterId, int hashCode, ReferenceQueue%3C? super Object%3E q) %7B%0A%09super(boundObject, q);%0A%09this.hashCode = hashCode;%0A    %7D%0A%0A    @Override%0A    public int getParameterId() %7B%0A%09// TODO Auto-generated method stub%0A%09return 0;%0A    %7D%0A%0A    @Override%0A    public int getHashCode() %7B%0A%09return hashCode;%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     *%0A     * The key used in the %7B@link BindingStore%7D is the object.%0A     */%0A    @Override%0A    public Object getKey() %7B%0A%09return get();%0A    %7D%0A%0A    @Override%0A    public DefaultLowLevelBinding next() %7B%0A%09return next;%0A    %7D%0A%0A    @Override%0A    public void setNext(DefaultLowLevelBinding next) %7B%0A%09this.next = next;%0A    %7D%0A%0A    @Override%0A    public void release() %7B%0A%09// TODO Garbage collection from bindings%0A    %7D%0A%0A    @Override%0A    public Node getBaseNode() %7B%0A%09return null;%0A    %7D%0A%0A    @Override%0A    public boolean isDisabled() %7B%0A%09return disabled;%0A    %7D%0A%0A    @Override%0A    public void setDisabled(boolean disabled) %7B%0A%09this.disabled = disabled;%0A%0A    %7D%0A%0A    @Override%0A    public long getTimestamp() %7B%0A%09return timestamp;%0A    %7D%0A%0A    @Override%0A    public void setTimestamp(long timestamp) %7B%0A%09this.timestamp = timestamp;%0A    %7D%0A%0A%7D%0A

Add DefaultLowLevelBinding