TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.util
Interface Link<T>

Type Parameters:
T - The type of the target.
All Known Subinterfaces:
FsArchiveFileSystemOperation<E>
All Known Implementing Classes:
FsArchiveFileSystem.PathLink, FsArchiveFileSystem.SegmentLink, Link.Type.SoftLink, Link.Type.StrongLink, Link.Type.WeakLink

public interface Link<T>

A link has a nullable target property. This interface is useful if a class is decorating or adapting another class and access to the decorated or adapted object should be provided as part of the public API of the decorating or adapting class.

Author:
Christian Schlichtherle

Nested Class Summary
static class Link.Type
          A link type defines the terms and conditions for clearing its target and is a factory for
 
Method Summary
 T getTarget()
          Returns the target of this link.
 

Method Detail

getTarget

@Nullable
T getTarget()
Returns the target of this link.

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

Returns:
The target of this link.

TrueZIP Kernel 7.0-rc2

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