TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs.archive
Class FsArchiveFileSystem.SegmentLink<E extends FsArchiveEntry>

java.lang.Object
  extended by de.schlichtherle.truezip.fs.archive.FsArchiveFileSystem.SegmentLink<E>
All Implemented Interfaces:
Link<FsArchiveFileSystemEntry<E>>
Enclosing class:
FsArchiveFileSystem<E extends FsArchiveEntry>

private static final class FsArchiveFileSystem.SegmentLink<E extends FsArchiveEntry>
extends Object
implements Link<FsArchiveFileSystemEntry<E>>

A data class which represents a segment for use by FsArchiveFileSystem.PathLink.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.util.Link
Link.Type
 
Field Summary
(package private)  String base
           
(package private)  FsArchiveFileSystemEntry<E> entry
           
(package private)  FsEntryName name
           
 
Constructor Summary
FsArchiveFileSystem.SegmentLink(FsEntryName name, String base, FsArchiveFileSystemEntry<E> entry)
          Constructs a new SegmentLink.
 
Method Summary
 FsArchiveFileSystemEntry<E> getTarget()
          Returns the target of this link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

final FsEntryName name

base

@CheckForNull
final String base

entry

final FsArchiveFileSystemEntry<E extends FsArchiveEntry> entry
Constructor Detail

FsArchiveFileSystem.SegmentLink

FsArchiveFileSystem.SegmentLink(FsEntryName name,
                                @CheckForNull
                                String base,
                                FsArchiveFileSystemEntry<E> entry)
Constructs a new SegmentLink.

Parameters:
name - the entry name.
base - the nullable base name of the entry name.
entry - the non-null file system entry for the entry name.
Method Detail

getTarget

public FsArchiveFileSystemEntry<E> 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<FsArchiveFileSystemEntry<E extends FsArchiveEntry>>
Returns:
The target of this link.

TrueZIP Kernel 7.0-rc2

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