TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.util
Class Link.Type.WeakLink<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<T>
          extended by de.schlichtherle.truezip.util.Link.Type.WeakLink<T>
All Implemented Interfaces:
Link<T>
Enclosing class:
Link.Type

private static class Link.Type.WeakLink<T>
extends WeakReference<T>
implements Link<T>

Adapts its subclass to the Link interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.util.Link
Link.Type
 
Constructor Summary
Link.Type.WeakLink(T target)
           
 
Method Summary
 T getTarget()
          Returns the target of this link.
 String toString()
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Link.Type.WeakLink

Link.Type.WeakLink(T target)
Method Detail

getTarget

public T getTarget()
Description copied from interface: Link
Returns the target of this link.

The returned object reference may be null subject to the terms and conditions of sub-interfaces or implementations.

Specified by:
getTarget in interface Link<T>
Returns:
The target of this link.

toString

public String toString()
Overrides:
toString in class Object

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.